[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
- Get Profile picture
If I made an app where user need to sign in with Google. Now how do I access the user profile picture?
- Intermittent 60s edge-to-origin stalls r...
Anyone having this problem? Region: SFO. Plan: Pro. UPDATE: "Fastly's documentation notes that enabling origin shielding can resolve backend connection problem...
- Vulnerabilities !!!
Why i can't mail to security@appwrite.io