Console Message ( When trying anonymous after google) : This leads me to believe I'm logged in
Uncaught (in promise) AppwriteException: Cannot create an anonymous user when logged in
Qwik message when trying to get account:
AppwriteException: User (role: guests) missing scope (account)
at Client.<anonymous> (file:///opt/Contrabot/Dashboard/node_modules/appwrite/dist/esm/sdk.js:391:27)
at Generator.next (<anonymous>)
at fulfilled (file:///opt/Contrabot/Dashboard/node_modules/appwrite/dist/esm/sdk.js:22:58)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
code: 401,
type: 'general_unauthorized_scope',
response: {
message: 'User (role: guests) missing scope (account)',
code: 401,
type: 'general_unauthorized_scope',
version: '1.3.7'
}
}
How I'm trying to check if I'm logged in:
isLoggedIn: async () => {
return account.get().then((response) => {
return true;
}).catch((error) => {
console.log(error)
return false;
});
},
Setup-
webapp: app.domain.com
appwrite: appwrite.domain.com
Reverse Proxying via nginx with host header set.
Edit: I'm using qwik via npm run and appwrite env is set to development