Web Developer
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. (/home/Hamdy/appwrite-habit-tracker/node_modules/appwrite/dist/cjs/sdk.js:657:23)
at Generator.next ()
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