/v1/auth/me
GET
/v1/auth/me
const url = 'https://api.reindeer.example.tr/v1/auth/me';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.reindeer.example.tr/v1/auth/me \ --header 'Authorization: Bearer <token>'Authorizations
Bölüm başlığı “Authorizations”Responses
Bölüm başlığı “Responses”Current principal
Media typeapplication/json
object
kind
string
id
string
name
string
roles
Array<string>
scopes
Array<string>
step_up_fresh
boolean
Example
{ "kind": "user", "roles": [ "admin" ]}