
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
- Subdomain failed verification
So I wanted to do a custom subdomain, because local storage doesn't work for me, but I've tried it a long time ago, it didn't work for me, and now I'm trying ag...
- 404 error when navigating to the team fr...
the version i m running is `1.7.4` as far as i can tell everything is working fine except for this weird bug in the video. when monitoring the appwrite and app...
- [Node.js SDK] Bypass 2GB file limit?
Hello. Using either InputFile.fromPath or InputFile.fromBuffer throws this error: File size (2295467305) is greater than 2 GiB Bucket limit etc. is setup corre...
