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
- Impossible to get USER after createEmail...
Am using provider to deal with functions linked to appwrite. Here is my login. Future<String?> login(String email, String password) async { try { aw...
- User ID case sensitivity
I see that through REST (and SDK as well), getting a user is not case sensitive. And even though documentation does not clearly state that it is, the wording "V...
- Weird permission failure
when creating an account I use following methods: ``` Future<void> register(String email, String password, String username) async { final user = await accoun...