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
- Cloud function deploy stucks in processi...
Been trying for the last hours to deploy my function but for whatever reason, alwasy stuck on processing!
- One-time Cloud migration blocked by data...
Hi, I’m blocked on a one-time migration from Appwrite Cloud to my self-hosted Appwrite instance. We already fixed the region issue, and the migration now corre...
- All My Project is Gone
Hello everyone, please help. Why have all my projects suddenly disappeared? I received a warning via email about one of my projects being paused. When I clicked...