I am trying to create a JWT on the server side.
TypeScript
(newClient.set_endpoint(os.getenv('ENDPOINT'))
.set_project(os.getenv('ID'))
)
account = Account(newClient)
account.create_email_password_session(email=email, password=password)
try:
jwt = account.create_jwt()
except Exception as e:
print("Unable to create jwt: " + str(e))
return None```
From my understanding in the docs, this would be the correct way to create a jwt with the same permissions as the user that logged in. but I get the error `User (role: guests) missing scope (account)`
Any thoughts is greatly appreciated
TL;DR
Developers are trying to create a JWT on the server side but encountering an error 'User (role: guests) missing scope (account)'. The issue might be related to permissions and scopes not being set correctly. Double-check the user permissions and scopes setup in the code.Recommended threads
- Github connection error - Self Hosted Ap...
I am trying to connect my github account to deploy a project to sites, but Connect to Gtihub button is disabled. I have configured all Env variables needed for...
- "Domain verification failed"
"Domain verification failed" I was install Appwrite in my VDS server. I using Coolify for install Appwrite. After install complete, i want add my domain, and i ...
- Server Down
Appwrite services are down. When will they start working again?