Crates.io | web_token |
lib.rs | web_token |
version | 1.0.0 |
source | src |
created_at | 2018-07-31 08:29:02.723495 |
updated_at | 2022-09-14 16:02:29.172302 |
description | Easy to use Web Token for Rust |
homepage | https://github.com/terry90/rs_web_token |
repository | https://github.com/terry90/rs_web_token |
max_upload_size | |
id | 76764 |
size | 9,216 |
Easy to use WebToken for rust
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"));