rocket-auth-token

Crates.iorocket-auth-token
lib.rsrocket-auth-token
version0.1.1
sourcesrc
created_at2021-11-28 18:32:39.265441
updated_at2021-11-28 18:38:52.597158
descriptionAuth token and credentials helper for your rocket web api. This is a basic token generator plugin for Rust Rocket Web.
homepagehttps://github.com/Samuelonoja/rocket-auth-token/
repositoryhttps://github.com/Samuelonoja/rocket-auth-token/
max_upload_size
id488916
size5,508
ddw (dontdiewondering)

documentation

https://docs.rs/rocket-auth-token

README

Auth token and credentials helper for your rocket web api.

This is a basic token generator crate for Rust Rocket Web.

let credentials = AuthCredentials{email: "email", password: "password"}, use hasher(credentials) function to generate and send AuthToken to user on login.

user then need to supply the generated token as auth header when making request to server. Using rocket request guard, grab the auth token and decode with decode_hasher function.

Commit count: 13

cargo fmt