[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
- No server error on selfhosted appwrite
Please help me, my clients is ask what happen on their data? How can i make it up again?
- Upgrading selfhost version?
It is okay to upgrade version to higher one, of my current version is 1.7.4 to 1.8.1. Is that safe to do cause my clients already have data on that? Also is a...
- Streamlit UI and local DB
I want to use Appwrite for automation, like run watchdog service every morning 3 am. Anyone got suggestions, already explored github and documentation no luck. ...