validate

abstract suspend fun validate(client: OAuth2Client, deviceSecret: String, idToken: Jwt)

Called when the OAuth2Client receives a Token response.

This should throw an Exception if the token is invalid.

Parameters

client

the OAuth2Client that made the Token request.

deviceSecret

the device secret from the Token response.

idToken

the Jwt representing the id token from the Token response.