isTokenValid

suspend fun isTokenValid(makeTestRequest: Boolean = true): TokenValidityResponse(source)

Tests whether the current token is actually valid. By default, an endpoint is called once to verify validity.

Return

TokenValidityResponse containing whether this token is valid, and if not, an Exception explaining why

Parameters

makeTestRequest

Whether to also make an endpoint request to verify authentication.