Skip to content
Discussion options

You must be logged in to vote

@zdanl yes, it is possible to fetch data from the OAuth provider, assuming adequate scopes were requested. Currently, OAuth data is in the Session rather than Account. As such, instead of calling account.get(), you would call account.getSession('current') to get the current Session. Assuming the session is an OAuth session, providerAccessToken would be populated with the access token from the OAuth provider. You can, then, use that access token to make API calls to the OAuth2 provider.

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by zdanl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
product / auth Fixes and upgrades for the Appwrite Auth / Users / Teams services.
2 participants
Converted from issue

This discussion was converted from issue #5039 on January 26, 2023 21:41.