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?
Recommended threads
- Can I create a transaction that involves...
i want to create a row un `auth.users` and then create a user in a table `profiles` but i want to use the same id for both tables. So, if insert a row in pro...
- createSession() fails on Linux but works...
Hey Guys i need some help with this one. Am building for web and desktop using different code bases. For web am using Nuxt, and for desktop(windows and linux) a...
- How to allow redirects from other URLs o...
I'm trying to implement google login in react native but the company I work for uses self hosted appwrite, and I always get the invalid success param error