[SOLVED] appwrite error User (role: guests) missing scope (account) while creating a user
- 0
- Resolved
- 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
- GB Hours IS NOT resetting
Hi, I was checking my usage and noticed that all of my usage quotas were reset on August 20, 2026, when my billing cycle renewed. Everything else appears to ha...
- How can I disable client-side account re...
Hi everyone! I’m currently building a game backend using Appwrite, and I’d like to prevent users from creating new accounts directly through the client. My go...
- relationships bug or error idk
hey every one, am using am using appwrite on a project and ran into a problem where by created a relationship and two way to be specific and it is stuck on proc...