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
- Appwrite DNS nameservers return SERVFAIL...
My custom domain demomanasa.online (and all its subdomains) stopped resolving with ERR_NAME_NOT_RESOLVED for all visitors. I have traced the failure to Appwrite...
- Framework categorization for Sites
Hello, I want to deploy my web app via Appwrite SItes. My web app is vite+reactjs. In the Appwrite docs, it creates a vite+react app, and chooses React from the...
- Not allowed permission to upsert a prese...
```js const presenceID = ID.unique(); setPID(presenceID); const presence = await presences.upsert({ presenceId: presenceID, status: "online"...