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§

Enums§

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

Functions§

  • Decodes token into

    .

  • Encodes Header and payload into JWT.

Type Aliases§