validate
abstract suspend fun validate(issuerUrl: String, clientId: String, idToken: Jwt, clock: OidcClock, parameters: IdTokenValidator.Parameters = Parameters(nonce = null, maxAge = null))
Validates the given idToken.
Implementations should throw Error (or another Exception) if validation fails.
Parameters
issuerUrl
the expected issuer URL.
clientId
the expected client ID (audience).
idToken
the parsed Jwt to validate.
clock
the clock for time-based checks.
parameters
optional nonce/maxAge parameters.