raffelOriginal post
Web Developer
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?
Summary
Developers are trying to get user roles from a JWT on an external server. They can call account.get() on the server when authenticated with JWT. To achieve this, they need to decode the JWT and extract user information, including roles, for authorization.