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
- Appwrite Sites: ERR_TOO_MANY_REDIRECTS o...
So, my domain was working perfectly fine with Vercel. I was using cloudflare CDN (still am) but CNAME was DNS-only. I switched over to appwrite, CNAME is still ...
- Charged after Downgrade
I downgraded from the pro plan last month, but it’s still trying to charge my card this month and my account has been restricted
- How to disable appwrite/embedding from s...
Hi everyone! I'm currently running a self-hosted instance of Appwrite. For my current use case, I don't need the AI/embedding features, and I noticed the `app...