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
- Authentication on custom Websocket Serve...
Hi, I want to use a custom Websocket Server (using Bun) for my application. However I cant really figure out authentication on custom servers. Session cookies ...
- Realtime for files() works almost well, ...
I have been trying to make use of realtime, today (14.03.26) I have pulled all the latest versions of docker images, and sdk available. Whats working: - Conn...
- Function issue
Hi,idk whats wrong with my function but i made some changes to the env var and made sure they saved then i redeployed it,but then after it redeeployed it asked ...