Back

AppwriteException: User (role: guests) missing scope (account) when clearing cookies

  • 1
  • Auth
  • Web
  • Cloud
Master
22 Jun, 2024, 06:22

Currently I am working with Appwrite to develop a web project on localhost server. But after login, I cleared my browser cookies and suddenly my account.get() function stopped working and throwing this error:

Unhandled Runtime Error AppwriteException: User (role: guests) missing scope (account)

Call Stack Client.eval node_modules\appwrite\dist\esm\sdk.js (428:1) Generator.next <anonymous> fulfilled node_modules\appwrite\dist\esm\sdk.js (22:43)

TL;DR
Developers encountering an 'AppwriteException' error message 'User (role: guests) missing scope (account)' after clearing browser cookies. Issue occurs because the user is logged out due to cookie deletion. To resolve, developers need to check user authentication status in their code and handle scenarios where users are not logged in properly.
be4st
22 Jun, 2024, 06:24

AppwriteException: User (role: guests) missing scope (account) this error means that user is not logged in

Master
22 Jun, 2024, 06:30

@be4st I know that but why am I getting this since I cleared the cookies?

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