Skip to content

Support guest user tokens #222

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 5, 2021
Merged

Support guest user tokens #222

merged 2 commits into from
Feb 5, 2021

Conversation

wai-chuen
Copy link
Contributor

Resolves #180

Guest users have an empty space dict in the /loadUserContent response where we normally fetch the space details. This change calls the /getPublicSpaceData endpoint with the space_id of the workspace the guest user has been invited to, to fetch the data when this occurs.

Could be pretty brittle as I've only tested it on my use case!

@jamalex
Copy link
Owner

jamalex commented Feb 5, 2021

Great, thanks! It looks pretty solid, and in any case unlikely to cause any failures for cases that wouldn't be failing already due to the issue this addresses, so let's give it a try and fix if anything comes up.

giphy

@jamalex jamalex merged commit 4f4a6e2 into jamalex:master Feb 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IndexError when initializing NotionClient
2 participants