is Token Valid Rest Action
fun isTokenValidRestAction(makeTestRequest: Boolean = true): SpotifyRestAction<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
make Test Request
Whether to also make an endpoint request to verify authentication.