Oidc.IDToken
ID Token validation and creation
type validation_error = [
]
Possible validation errors
val validation_error_to_string : validation_error -> string
val validate :
?clock_tolerance:int ->
?nonce:string ->
?jwk:'a Jose.Jwk.t ->
client:Client.t ->
issuer:Uri.t ->
Jose.Jwt.t ->
( Jose.Jwt.t, [> validation_error ] ) Stdlib.result
Validation of the ID Token according to the spec.
clock_tolerance
is used to allow for a difference in clocks between the provider and client jwk
is not needed when "alg": "none"
Required fields
Fields to be validated if exists
Optional fields: