UserInfo Endpoint
GET
/oidc/userinfo
const url = 'https://auth.timetonic.com/oidc/userinfo';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://auth.timetonic.com/oidc/userinfo \ --header 'Authorization: Bearer <token>'Returns claims about the authenticated user based on granted scopes.
Authorizations
Section intitulée « Authorizations »Responses
Section intitulée « Responses »User claims
Media typeapplication/json
object
sub
string
name
string
email
string
email_verified
boolean
Examplegenerated
{ "sub": "example", "name": "example", "email": "example", "email_verified": true}Invalid or expired bearer token