
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
- Queries Length Error.
Hi All, I am having a issues across my app with how i am getting data, and just wanted to check if this was an issues with the new changes on appwrite over the...
- The current user is not authorized to pe...
I'm just getting this error while it was working couple minutes ago, my users have permissions to access and create tables data but on some databases I'm just g...
- My projects archived. Did not see the up...
Kindly restore project for me: 67680a26001bdf36beb8 You can delete: 678c96ba00305f78bb13 675d05040004853fb43f
