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
- proccessing problems
A database schema operation is stuck in my Frankfurt project. In the matryq database, the workspaceId attribute of the coaching_activity_entries collection rema...
- User column is processing
I am still encountering the processing tag after creating a column in my database. and its not a network or refresh issue, i have refreshed over and over, shutd...
- Error upgrading from 1.8.1 to 1.9.0
DO Self-hosted server failed to upgrade with this error "Error response from daemon: client version 1.52 is too new. Maximum supported API version is 1.42". U...