Hi, I have an external (Yjs) server that I want to use Appwrite's auth with. Specifically I want to read a user's roles/labels and allow access if a given role is set. I see I can use JWTs (as the user is authenticated on the web), but how would I go about getting the user from the JWT (and then the user's roles) on my own server?
Oh, oops, I can just call account,get() on the server when auth'd with JWT?
account.get() will return some user data yes, and when auth'd createJWT will drop a token for you(valid for 15 minutes)
Recommended threads
- Selfhost - Starting Docker containers fa...
I am stuck at installing appwrite. Specifically, the containers dont want to start up. The images are downloaded and ready. Dockhand is reporting containers st...
- It says domain already used but I have d...
I accidentally deleted the project in which I used my domain originally (orexia.app) from name.com. Now I am trying to add it to a different project and it says...
- Is this normal in the self host custom d...
when i try to add custom domain to the project did not see this in 1.8.0 ok when pressed the retry it says "DNS verification failed with resolver 8.8.8.8. Domai...