I am trying to perform an operation on the user registration side. I get an error like "AppwriteException: User (role: guests) missing scope (account)" Can you help me solve it? Thank you. Repo: https://github.com/beyzanur-seyhan/bank-dashboard
#Error: AppwriteException: User (role: guests) missing scope (account)
6 messages · Page 1 of 1 (latest)
What's the fragment of the code that throws that error?
It's usually thrown when the user is not logged in correctly
As far as I'm aware, calling account.create() does not create a session - you have to do that yourself.
For example:
const register = async () => {
await account.create("unique()", email, password, name);
await account.createEmailPasswordSession(email, password);
console.log(await account.get());
}