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?

  • Charlie FishOPA
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 年前

    Looks like the solution here is to do a GetSite request. And that will include a my_user.local_user_view.person.id property.