Skip to content
Back

updateSession isn't working for google oauth session

  • 0
  • React Native
  • Auth
Vodi
17 Feb, 2026, 17:23

I'm building an app using react native with expo.

An image of my code is attached. The code is a useEffect that i have in a context that wraps the root layout of my app.

When my user leaves the app and comes back to the app, this block of code is triggered. It successfully passes the "if" check and tries to update the session. However it throws this error every time dispite the user being logged in with an oauth2 google session:

"Error updating current session: [AppwriteException: The chosen OAuth provider is unsupported. Please check the <a href="/docs/client/account?sdk=web-default#accountCreateOAuth2Session">Create OAuth2 Session docs</a> for the complete list of supported OAuth providers.]"

Why is this happening and how do I fix it?

TL;DR
Issue: The developer is facing an error "The chosen OAuth provider is unsupported" when trying to update the session using updateSession for Google OAuth in a React Native app built with Expo. Solution: The error occurs because the OAuth provider chosen is unsupported. The developer should check the Create OAuth2 Session docs for the complete list of supported OAuth providers and ensure that Google oauth2 is supported.
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