Hey there i have a question i just starded my project, i can register and login, but i don't go to the home page it says:
TypeScript
checkAuth: isAuthenticated - false, error: AppwriteException: User (role: guests) missing scope (account)
at Generator.next (<anonymous>) {
code: 401,
type: 'general_unauthorized_scope',
response: '{"message":"User (role: guests) missing scope (account)","code":401,"type":"general_unauthorized_scope","version":"1.6.2"}'
}
checkAuth: Error message: User (role: guests) missing scope (account)
checkAuth: Error code: 401
checkAuth: Error type: general_unauthorized_scope
My code is: Register.tsx: https://sourceb.in/7tREH6QNRJ Login.tsx: https://sourceb.in/kgONFqXAgm index.tsx/HomePage: https://sourceb.in/wpcQz3L8Sw
TL;DR
Developers encountered a 401 error where the user is missing the 'account' scope. The issue lies in missing authorization in the code provided in Register.tsx, Login.tsx, and index.tsx/HomePage.
To resolve this, you need to implement the 'account' scope for the 'guests' role in your authentication logic.Recommended threads
- Domain is already used. Please try again...
I have a website with where the www.domain.me This website works just fine But if I try to visit domain.me. I get this error. I keep getting sent to some app ri...
- Realtime api and labels as permission
in my tables i set labels as permission and real-time capabilities stopped working. Before when i was having "any" role everything was working. Note: user have...
- Register Disable
this is possible disable register but keep oauth login?