From 4c12fc99500152e9270279802a3f37c7cd7949ff Mon Sep 17 00:00:00 2001 From: chesedo Date: Sat, 23 Mar 2024 16:14:03 +0000 Subject: [PATCH] misc: v0.1.1 --- Cargo.lock | 2 +- Cargo.toml | 2 +- README.md | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 4fe1f5f..46c0b0e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -854,7 +854,7 @@ dependencies = [ [[package]] name = "tower-jwt" -version = "0.1.0" +version = "0.1.1" dependencies = [ "async-trait", "axum", diff --git a/Cargo.toml b/Cargo.toml index 717de83..8c8e6fa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "tower-jwt" description = "Tower middleware to parse JWTs on Authorization Bearers" -version = "0.1.0" +version = "0.1.1" license = "Apache-2.0" repository = "https://github.com/shuttle-hq/tower-jwt" documentation = "https://docs.rs/tower-jwt" diff --git a/README.md b/README.md index 3cb2857..f5215ca 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ use std::convert::Infallible; use tower::{Service, ServiceBuilder, ServiceExt}; use tower_jwt::{JwtLayer, RequestClaim}; +// Setup your claim with the fields you want to extract #[derive(Clone, Deserialize, Debug)] struct Claim { /// Subject (whom the token refers to) @@ -109,6 +110,7 @@ use serde::Deserialize; use tower::ServiceExt; use tower_jwt::{JwtLayer, RequestClaim}; +// Setup your claim with the fields you want to extract #[derive(Deserialize, Clone)] pub struct Claim { /// Subject (whom token refers to).