Skip to content

Renew the current session

POST
/v1/auth/sessions/renew
curl --request POST \
--url https://api.emite.cr/v1/auth/sessions/renew

Re-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.

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
}