refreshTokens

suspend fun refreshTokens(refreshToken: String? = tokenManager.refreshToken()): Session

Refreshes the authentication tokens.

Return

The Session containing the new tokens.

Parameters

refreshToken

The refresh token to use. If null, the one from tokenManager is used.

See also

Throws

if no refresh token is available.