Print token on claims example

This commit is contained in:
Vincent Prouillet 2016-03-23 13:27:46 +00:00
parent 529c523d6d
commit 60b511a97a
1 changed files with 2 additions and 0 deletions

View File

@ -34,6 +34,8 @@ fn main() {
Err(_) => panic!() // in practice you would return the error
};
println!("{:?}", token);
let token_data = match decode::<Claims>(&token, key.as_ref(), Algorithm::HS256) {
Ok(c) => c,
Err(err) => match err {