Crate small_jwt

Crate small_jwt 

Source
Expand description

Small JWT library without any validation (except signature).

Pros:

  • Simple, only 2 functions, 1 Header struct and 1 Error enum;
  • All payload validation is on your side;
  • Error enum holds dependency errors.

Cons:

  • this library IS A SMALL SUBSET that I need, not even a third of RFC implementation.
  • I’m lazy and there are only simple tests;
  • Error enum holds dependency errors.

Structs§

Header

Enums§

Error
Crate level error. Supplies both user-level single error and inner dependency errors.

Functions§

decode
Decodes token into

.

encode
Encodes Header and payload into JWT.

Type Aliases§

Result