English
Get user information via access token
cURL
curl --request GET \ --url http://127.0.0.1:3000/api/auth/user \ --header 'Authorization: Bearer <token>'
{ "id": "<string>", "name": "<string>", "avatar": "<string>", "email": "[email protected]" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Successfully retrieved user information
Was this page helpful?