[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
- self-hosted auth: /v1/account 404 on saf...
Project created in React/Next.js, Appwrite version 1.6.0. Authentication works in all browsers except Safari (ios), where an attempt to connect to {endpoint}/v1...
- delete document problems
i don't know what's going on but i get an attribute "tournamentid" not found in the collection when i try to delet the document... but this is just the document...
- Update User Error
```ts const { users, databases } = await createAdminClient(); const session = await getLoggedInUser(); const user = await users.get(session.$id); if (!use...