Hello guys,
I have a nuxt application where I use the package "nuxt-appwrite": "^1.2.0",
Now I want to login with email and password with this code:
async login(email: string, password: string){
const { account } = useAppwrite()
this.loading = true;
this.loginError = false;
try {
this.session = await account.createEmailPasswordSession(email, password);
this.account = await account.get();
this.loading = false;
} catch (error) {
this.loginError = true;
this.loginErrorMessage = error instanceof AppwriteException ? error.message : 'An error occurred. Please try again later.';
this.loading = false;
}
},
But I get the error User (role: guests) missing scope (account) which is actually strange as the createEmailPasswordSession request works fine and I get a session but the next request fails. Attached is the screenshot where you can see the session informations and the appwriteException and another screenshot shows the request header.
Please let me know what I am doing wrong. Kind regards
Recommended threads
- Function connected custom domain error: ...
My domain is served through Cloudflare. Domain is now connected with the appwrite function. But when accessing the domain, I get the below error. Any suggestion...
- Error | general_unknown
I have built a website using Appwrite Cloud as backend, and also using sites for deployment. My website is live but sometimes it shows Appwrite's Error general_...
- Invalid token passed in the request
Hello, I have an issue using updateMagicURLSession. I send the email using sendMagicLink, which works fine. When i click the link in the email i get the invali...