
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
- ❗[Help] Function stuck in "waiting" stat...
Hi Appwrite team 👋 I'm trying to contribute to Appwrite and followed the official setup instructions from the CONTRIBUTING.md guide to run the platform locall...
- Stuck in "deleting"
my parent element have relationship that doesnt exist and its stuck in "deleting", i cant delete it gives me error: Collection with the requested ID could not b...
- Help with 409 Error on Relationship Setu...
I ran into a 409 document_already_exists issue. with AppWrite so I tried to debug. Here's what I've set up: Collection A has 3 attributes and a two-way 1-to-m...
