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
- education plan not activated
Hi I have an edu id 13103046@iubat.edu but when I am trying to claim my plan and trying to logging with github where education student plan active. the appwrite...
- 500 simultaneous OAuth logins from the s...
Hi, I'd like to ask about rate limiting around Google OAuth login on Appwrite Cloud. **OVERVIEW** Service type: A PWA (web app) for members of a university clu...
- Suspicious access pattern detected when ...
Hello, I am having trouble restoring my project. In the past it worked with no problems, but today I get an error "Suspicious access pattern detected". How can ...