Skip to main content

Refresh a token

POST 

/jwt/refresh

Access tokens are intentionally short-lived (because they cannot be revoked). As a result, the user's front-end should call this endpoint to get a new pair of session tokens (access and refresh).

Request

Body

required
    refresh_token stringrequired

Responses

Tokens.

Schema
    access_token jwt_tokenrequired

    A (typically) short-lived JWT token used to access authenticated resources, e.g the Nabla Patient API.

    refresh_token jwt_tokenrequired

    A (typically) long-lived JWT token allowing you to "refresh" your access to resources (i.e. extend your session, returning a fresh access token and a new refresh token with a later expiration).

Loading...