hey folks
I am getting User (role: guests) missing scope (account)"
which seems to be a fairly common issues
- I attempt login with google oath, then fails and redirects me back each time
- google oath says it can take weeks for my oath scope and app to be approved, could this be it?
Here is my appwrite config, using oath2 with google
TypeScript
console.log(OAuth2Provider)
const url = import.meta.env.VITE_APPWRITE_ENDPOINT;
const project = import.meta.env.VITE_APPWRITE_PROJECT;
const client = new Client();
client
.setEndpoint(url)
.setProject(project);
export const account = new Account(client);
account.createOAuth2Session(
OAuthProvider.Google,
'https://main--videogame-selector.netlify.app',
'https://main--videogame-selector.netlify.app/',
['https://www.googleapis.com/auth/userinfo.email']
);
am i missing something?
- Ive enabled all roles for each collection on my appwrite platform
- I created oath2 with google, passed corrrect id and key to google and apprwite
TL;DR
Developers are receiving a `User (role: guests) missing scope (account)` error when trying to log in with Google OAuth2. The issue may be related to the OAuth2 scope and app approval process with Google, which can take time.
To resolve this, ensure that the OAuth2 configuration is correct in the code provided, and double-check that all steps have been followed accurately. It is also recommended to wait for the approval process to complete if that could be contributing to the problem.google oauth2
Recommended threads
- CORS errors in Obsidian custom plugin
Hi, anyone here familiar with obsidian community plugins? In short: it's a local first note app which supports writing your own add-ons / plugin But I keep get...
- > AppwriteException: The requested servi...
When trying to read or write from my database I get the following error: > AppwriteException: The requested service is disabled. You can enable the service from...
- Courtesy limit reset for non-profit migr...
Hi Team! I'm the architect for a 501(c)(3) non-profit project (Aaria's Blue Elephant) and we just hit our Free plan Database Read limit (currently at 164%). Th...