How do I use ESI to get id of logged in user?

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.

  1. Use with the user’s token, and get it from the response body.
  2. Parse it out from the token. See In your case it would be the numeric part of the sub claim.
1 Like

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.