web_token

Crates.ioweb_token
lib.rsweb_token
version1.0.0
sourcesrc
created_at2018-07-31 08:29:02.723495
updated_at2022-09-14 16:02:29.172302
descriptionEasy to use Web Token for Rust
homepagehttps://github.com/terry90/rs_web_token
repositoryhttps://github.com/terry90/rs_web_token
max_upload_size
id76764
size9,216
Terry Raimondo (terry90)

documentation

README

Web token

Easy to use WebToken for rust

Build Status codecov

Usage

Features: ["serde_support", "diesel_support"]

// Create new random token
let new_token = WebToken::new();

// Get an existing token
let incoming_token: WebToken = request.header("X-Custom-Token").parse().unwrap();
assert_eq!(incoming_token, request.header("X-Custom-Token"));
Commit count: 20

cargo fmt