Skip to content

Commit

Permalink
misc: v0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
chesedo committed Mar 23, 2024
1 parent 46048ba commit 4c12fc9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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).
Expand Down

0 comments on commit 4c12fc9

Please sign in to comment.