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
- Accidental deletion of two production da...
Hello Appwrite Support, We accidentally deleted two production databases and urgently need your help restoring them. What happened: On 2026-08-14 at approxima...
- Get Profile picture
If I made an app where user need to sign in with Google. Now how do I access the user profile picture?
- Intermittent 60s edge-to-origin stalls r...
Anyone having this problem? Region: SFO. Plan: Pro. UPDATE: "Fastly's documentation notes that enabling origin shielding can resolve backend connection problem...