mirror of
https://github.com/TECHNOFAB11/jwt-authorizer.git
synced 2025-12-12 08:00:07 +01:00
feat: building layer from rsa, ec, ed, secret
This commit is contained in:
parent
b0667729a3
commit
9bd99b2a13
5 changed files with 80 additions and 58 deletions
|
|
@ -39,7 +39,7 @@ async fn main() {
|
|||
|
||||
let api = Router::new()
|
||||
.route("/protected", get(protected))
|
||||
.layer(jwt_auth.layer());
|
||||
.layer(jwt_auth.layer().unwrap());
|
||||
// .layer(jwt_auth.check_claims(|_: User| true));
|
||||
|
||||
let app = Router::new()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue