sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Jose.JwtSourcetype t = {header : Header.t;raw_header : string;payload : payload;raw_payload : string;signature : Jws.signature;}val of_string :
jwk:'a Jwk.t ->
now:Ptime.t ->
string ->
(t,
[> `Expired
| `Invalid_signature
| `Msg of string
| `Not_json
| `Not_supported ])
resultof_string ~jwk jwt_string parses and validates the encoded JWT string.
val validate_signature :
jwk:'a Jwk.t ->
t ->
(t, [> `Invalid_signature | `Msg of string ]) 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.