cURL
curl --request GET \ --url https://api.example.com/api/auth/sessions/current \ --header 'Authorization: Bearer <token>'
{ "user": { "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "email": "[email protected]", "role": "authenticated" } }
Returns the currently authenticated user’s basic info from JWT token
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Current user info
Show child attributes