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
- [Beginner] CLI --queries Syntax Error & ...
Hi everyone! I am a beginner with Appwrite and trying to use the CLI, but I'm stuck with a syntax error. Any guidance would be greatly appreciated! ๐ **Enviro...
- Cloud function deploy stucks in processi...
Been trying for the last hours to deploy my function but for whatever reason, alwasy stuck on processing!
- One-time Cloud migration blocked by data...
Hi, Iโm blocked on a one-time migration from Appwrite Cloud to my self-hosted Appwrite instance. We already fixed the region issue, and the migration now corre...