I'm trying to login and after the login to navigate to the dashboard but it's no working
i get this error
Authentication error: AppwriteException: User (role: guests) missing scope (account)
at Client.<anonymous> (/home/Hamdy/appwrite-habit-tracker/node_modules/appwrite/dist/cjs/sdk.js:657:23)
at Generator.next (<anonymous>)
at fulfilled (/home/Hamdy/appwrite-habit-tracker/node_modules/appwrite/dist/cjs/sdk.js:21:58)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
code: 401,
type: 'general_unauthorized_scope',
response: {
message: 'User (role: guests) missing scope (account)',
code: 401,
type: 'general_unauthorized_scope',
version: '1.6.1'
}
}
my controller
This my middleware, am i doing something wrong
this project was originally using passport and mongoose
TL;DR
Developers are facing an auth error with Github auth, getting "User (role: guests) missing scope (account)" when trying to login and navigate to the dashboard. The issue lies with missing scope in the user role. The project originally used passport and mongoose.