Renew the current session
POST
/v1/auth/sessions/renew
const url = 'https://api.emite.cr/v1/auth/sessions/renew';const options = {method: 'POST'};
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://api.emite.cr/v1/auth/sessions/renewRe-issues this session with a new issue time — what keeps a company’s inactivity rule satisfied while the person is working. The new token comes in the X-Session-Token header. It never extends the session past its maximum, which counts from the sign-in. renewed: false (and no header) when the token is under 30 seconds old or the session has already moved on to a newer token.
Responses
Section titled “Responses”Whether a new token was issued in the X-Session-Token header.
Media typeapplication/json
object
renewed
required
true when a new token was issued, in the X-Session-Token response header. false (and no header) when the current token is under 30 seconds old — another tab just renewed — or the session has already moved on to a newer token: nothing to do either way.
boolean
Example
{ "renewed": true}