Skip to content
Back

I have auth error, I'm using Github auth, 'User (role: guests) missing scope (account)

  • 0
  • Auth
  • Web
Ahmed Hamdy 🌌
16 Feb, 2025, 06:25

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.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more