Skip to content
Back

I cant get oauth provider access token when session created using createOAuth2Token

  • 0
  • Web
  • Cloud
DeadShoot
18 Apr, 2025, 08:43

As the title suggested, when i create a session using createOauth2token, i cannot get the google's access token, like when doing getSession("current"), the response shows blank access token details like expory, token, etc.

I followed this post to implement my authentication and its working fine. I just need to get the google access token. https://appwrite.io/blog/post/fixing-oauth2-issues-in-appwrite-cloud#how-oauth2-token-authentication-works

TL;DR
Developers are unable to retrieve Google's access token when creating a session using createOAuth2Token. The response for getSession("current") is showing blank access token details. Followed a guide from appwrite.io for implementing authentication. **Solution:** Check the implementation following the guide from appwrite.io to ensure proper retrieval of the Google access token.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more