AuthsController_refresh
POST
/auths/refresh
const url = 'https://example.com/auths/refresh';const options = {method: 'POST', headers: {'x-tenant-schema': 'example'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/auths/refresh \ --header 'x-tenant-schema: example'Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”x-tenant-schema
required
string
The tenant of the request.
Responses
Section titled “Responses”A new access token for the session of the refresh cookie; a rotation also sets a new cookie.
Media typeapplication/json
object
id
required
string
principalType
required
string
tenant
required
string
email
required
string
department
required
string
accessToken
required
string
accessTokenExpiresAt
required
number
Example
{ "principalType": "user"}