Returns an encoded representation of the decoded jwt, signed with a signature generated with the secret provided.
Returns an encoded representation of the decoded jwt, signed with a signature generated with the secret provided.
the secret to use when signing the jwt
an encoded representation of the decoded jwt
Attempts to return a ClaimValue of the provided type.
Attempts to return a ClaimValue of the provided type.
the type of a potential claim
returns None if no claim found, otherwise a claim of the same type as requested wrapped in Some
Attempts to return a HeaderValue of the provided type.
Attempts to return a HeaderValue of the provided type.
the type of a potential header
returns None if no header found, otherwise a header of the same type as requested wrapped in Some