Back

[Error: AppwriteException: User (role: guests) missing scope (account)]

  • 0
  • React Native
  • Functions
  • Storage
  • Auth
vasja
25 May, 2024, 15:02

I've been having this issue of me not being able to sign up with the values "username", "email" and "password".

TL;DR
Developers are encountering an error where the user role "guests" is missing the scope "account" when trying to sign up. The issue arises from the signIn function not creating a session. To resolve the problem, ensure that the necessary session is created after the account is generated.
Steven
25 May, 2024, 15:57

The error means you haven't created a session

vasja
25 May, 2024, 15:58

When I press the sign up button, this function gets called:

vasja
25 May, 2024, 15:59

it creates the account and then calls a session by using the function signIn:

vasja
25 May, 2024, 15:59

signIn function:

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