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
- Got message for auto payment of 15usd fo...
how did this happen? 1. i claimed my 50usd credits via jsm hackathon - https://hackathon.jsmastery.pro/ 2. it asked me which org. to apply the credits on, i se...
- Apple OAuth Scopes
Hi Hi, I've configured sign in with apple and this is the response i'm getting from apple once i've signed in. I cant find anywhere I set scopes. I remember se...
- Sign In With Apple OAuth Help
Hi All! I've got a flutter & appwrite app which Im trying to use sign in with apple for. I already have sign in with google working and the function is the sam...