feat: building layer from rsa, ec, ed, secret

This commit is contained in:
cduvray 2023-01-11 08:20:47 +01:00
parent b0667729a3
commit 9bd99b2a13
5 changed files with 80 additions and 58 deletions

View file

@ -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()