I want to show the user their location, and for that I need their character id.
How do I get the character id of the user that is currently logged in?
You have two options.
- Use https://esi.evetech.net/ui/?version=meta#/Meta/get_verify with the user’s token, and get it from the response body.
- Parse it out from the token. See https://docs.esi.evetech.net/docs/sso/validating_eve_jwt.html. In your case it would be the numeric part of the
sub
claim.
2 Likes
Thank you!
This is exactly what I need.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.