h256only 0.4.0

Web token library based on rust-jwt with support only for HMACSHA256
Documentation

H256Only

crates.io

A Web Token library forked from rust-jwt

Inspired by the h256only go library.

For more information on this rationale, please read Kevin Burke's article on JWT

For usage documentation, please see the original JWT Documentation.

Usage

The library provides a Token type that wraps a header and claims. The header and claims can be any types that implement the Component trait, which is automatically implemented for types that implement the Sized, Encodable, and Decodable traits. See the examples.