Jose.Jwtval empty_payload : payloadtype t = {header : Header.t;raw_header : string;payload : payload;raw_payload : string;signature : Jws.signature;}val get_yojson_claim : t -> string -> Yojson.Safe.t optionval get_string_claim : t -> string -> string optionval get_int_claim : t -> string -> int optionval to_string : ?serialization:Jws.serialization -> t -> stringval of_string :
jwk:'a Jwk.t ->
now:Ptime.t ->
string ->
(t,
[> `Expired
| `Invalid_signature
| `Msg of string
| `Not_json
| `Not_supported ])
Stdlib.resultof_string ~jwk jwt_string parses and validates the encoded JWT string.
val unsafe_of_string :
string ->
(t, [> `Msg of string | `Not_json | `Not_supported ]) Stdlib.resultval validate_signature :
jwk:'a Jwk.t ->
t ->
(t, [> `Invalid_signature | `Msg of string ]) Stdlib.resultvalidate_signature ~jwk t checks if the JWT is valid and then calls Jws.validate to validate the signature
check_expiration ~now t checks whether the JWT is valid at the current time.