When trying to login through OAuth2 google, the following error occurs. { "message": "User (role: guests) missing scope (account)", "code": 401, "type": "general_unauthorized_scope", "version": "1.5.7" } I cannot login through google. The following is my code snippet for logiging in with google.
export const handleGoogleLogin = async (e) => { e.preventDefault() try{ const session = await account.getSession('current') if(session) { await account.deleteSession('current') } await account.createOAuth2Session( OAuthProvider.Google, "http://localhost:3000", "http://localhost:3000/failure", ) } catch(err) { console.log(err) alert(err) } }
Recommended threads
- Relation Question
How do I create a relation from table y to an others x.$id. in my example I have a users table where I use Appwrites unique User IDs and I want other tables fo...
- Unknown attribute type: varchar / text
Since the `string` type is deprecated I tried using `varchar` and `text` in some newer tables, but when running `appwrite pull tables && appwrite types ./src/li...
- I'm experiencing a critical bug on Appwr...
Hey <@870607367597850624> team / support 👋 I'm experiencing a critical bug on Appwrite Cloud that's blocking my production Flutter app. I've already filed GitH...