Skip to content
Back

providerAccessToken is empty for oauth session created (Next JS Server side auth)

  • 0
  • Web
Vineet
26 May, 2024, 11:27

I want to use the access token after google oauth login to fetch the profile details like the photo, first name and last but seems there is no access token present in the session.

TL;DR
- Developer followed a guide for Next JS server-side authentication, but the `providerAccessToken` is empty in the session after Google OAuth login. - They want to use the access token to fetch profile details like the photo, first name, and last name. - Solution: The issue likely stems from how the access token is handled in the authentication flow. Double-check the implementation steps and ensure the access token is being stored correctly in the session.
Vineet
26 May, 2024, 11:27
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