This is the error I am facing Backend :: getCurrentUser :: error AppwriteException: User (role: guests) missing scope (account) at Client.<anonymous> (http://localhost:5173/node_modules/.vite/deps/appwrite.js?v=de89454e:850:17) at Generator.next (<anonymous>) at fulfilled (http://localhost:5173/node_modules/.vite/deps/appwrite.js?v=de89454e:488:24)
This is my code import {Client, Account, ID, Databases } from 'appwrite'; import conf from '../conf/conf';
export class AuthService{ client = new Client(); account; databases
constructor (){
this.client
.setEndpoint(conf.appwriteUrl)
.setProject(conf.appwriteProjectId)
this.account = new Account(this.client)
this.databases = new Databases(this.client);
}
async createAccount ({ email, password, name, confirm_password}) {
try {
const id = ID.unique()
const userAccount = await this.account.create(id, email, password, name, confirm_password )
if (userAccount) {
return userAccount
} else {
return false
}
} catch (error) {
console.log("Backend :: createAccount :: error", error)
throw error
}
}
please help
Are you using some kind of SSR framework?
I am using reactJS
Recommended threads
- Deployed website on Sites not opening.
Hey y'all. I deployed a site as a submission for the Sites Hackathon, which was nearly a month ago. After the hackathon, I never really opened the site. Now, wh...
- I'm getting error Invalid `url` param: I...
``` 2025-10-26T12:52:02.292Z [error] AppwriteException: Invalid `url` param: Invalid URI. Register your new client (vercel.com) as a new Web platform on your pr...
- Having issues while trying to published ...
All am seeing is this on while going to the page please help