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
- Impossible to get USER after createEmail...
Am using provider to deal with functions linked to appwrite. Here is my login. Future<String?> login(String email, String password) async { try { aw...
- fastly error
Hey! I'm hitting a Fastly error on the www version of our site, but the root domain works fine. We have a wildcard set up, so I expected the subdomain to be cov...
- Facebook's scraper facebookexternalhit g...
share.bardbliss.com but works fine on the raw fra.appwrite.run URL. No execution logs appear when Facebook hits the custom domain. This was working before. How ...