[SOLVED] appwrite error User (role: guests) missing scope (account) while creating a user
- 0
- Users
- Web
- Realtime
Hey I am getting this error whenever i tried to create a user.
appwrite error User (role: guests) missing scope (account) while creating a user. How do i fix it?
What's your code?
await account.create(ID.unique(),email, password);
And this is a frontend JS site?
Yes
And you're definitely using the appwrite package, not the node-appwrite package?
Yep sir
And you don't have a Users Limit enabled in Auth > Secutiry?
this is what happens when i create a user but the account is created but the session is not created
yep its in unlimited
Oh, right. I don't think a Session is created automatically on user creation? You need to call account.createEmailSession()
Oh is it
lemme give it a try
Nope still getting the same error
Ok. What's triggering that error (at LoginCard.jsx line 44)?
Hey account.createEmailSession() actually fixed the issue. I just passed the email and password to there after creating the account and now the error is gone
thanks a lot
: )
Great! If your issue has been solved, you can mark this post as closed by adding “[SOLVED]” to the beginning of the title
Thanks man
Will do
[SOLVED] appwrite error User (role: guests) missing scope (account) while creating a user
Recommended threads
- CORS errors in Obsidian custom plugin
Hi, anyone here familiar with obsidian community plugins? In short: it's a local first note app which supports writing your own add-ons / plugin But I keep get...
- > AppwriteException: The requested servi...
When trying to read or write from my database I get the following error: > AppwriteException: The requested service is disabled. You can enable the service from...
- Courtesy limit reset for non-profit migr...
Hi Team! I'm the architect for a 501(c)(3) non-profit project (Aaria's Blue Elephant) and we just hit our Free plan Database Read limit (currently at 164%). Th...