this post was submitted on 18 Jun 2023
2 points (100.0% liked)

Lemmy

11947 readers
83 users here now

Everything about Lemmy; bugs, gripes, praises, and advocacy.

For discussion about the lemmy.ml instance, go to [email protected].

founded 4 years ago
MODERATORS
 

After getting a LoginResponse from the Lemmy API, it returns an auth JWT token.

I'm trying to figure out how I can get that users person_id or username so I can make a GetPersonDetails request for the currently logged in user.

Any ideas on how to do this?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] -1 points 1 year ago

I havent tried, but usually a JWT contains some sort of user ID