Uncaught (in promise) AppwriteException: User (role: guests) missing scope (account)
I'm trying to test something related to JWT session this is what i wrote on the web client end
const client = new Client();
client
.setEndpoint('http://localhost/v1')
.setProject('<my-id>')
const account = new Account(client);
async function login() {
await account.createEmailPasswordSession("testing1@gmail.com", "test@123")
}
async function jwt() {
await account.createJWT();
}
async function testing() {
const acc = await account.get();
console.log(acc)
}
login();
jwt();
testing();
setTimeout(() => {
testing();
}, 15000);
I've set the session timeout limit to 10 sec to and set timeout to 15sec to see what I want to check the problem is after 15sec have passed I keep running into the error I posted above any fix for this?
Recommended threads
- Get team fail in appwrite function
I try to get team of a user inside appwrite function, but i get this error: `AppwriteException: User (role: guests) missing scope (teams.read)` If i try on cl...
- Deploy function not working - 503
Hellon i get this error message, when i try to deploy a new version of a function <html><body><h1>503 Service Unavailable</h1>No server is available to handle...
- Error When load the website
Hi, I am getting this error whenever I reload my website please help me, I am using react Error: ** GET https://cloud.appwrite.io/v1/account 401 (Unauthoriz...