api.refreshAccessToken

Generates a new JWT.

Parameters

  • refreshTokenrequiredstring

    A valid refresh token that was returned on login.

Examples

Get a new access and refresh token using a valied refresh_token

const { error, data } = await api
.refreshAccessToken(refresh_token)