Crate super_simple_jwt

Source

Structs§

Header

Enums§

Algorithm
The algorithm used to sign the JWT. Currently, only HS256 is supported.
DecodeClaimsError
Type returned when decoding claims fails
DecodeHeaderError
Error type returned when decoding a header fails
EncodeClaimsError
Error type returned when encoding claims fails.
EncodeHeaderError
Error type returned when encoding a header fails
SignTokenError
The error type for signing operations
VerifyTokenError
Type returned if there is an error when verifying a token

Functions§

decode_claims
Decodes claims from a base64 string into the user defined type T
decode_header
Decodes a base64 string into a header
encode_claims
Encodes claims into a base64 string.
encode_header
Encodes a header into a base64 string
sign
Signs the token with the given header and claims using the specified signing key.
verify
Verify a token using the given algorithm and (public/verifying) key