|
|
|
|
@ -288,6 +288,7 @@ impl ZeroIDC {
|
|
|
|
|
t.claims().registered.clone(); |
|
|
|
|
match claims.expiration { |
|
|
|
|
Some(exp) => { |
|
|
|
|
println!("exp: {}", exp); |
|
|
|
|
(*inner_local |
|
|
|
|
.lock() |
|
|
|
|
.unwrap()) |
|
|
|
|
@ -297,6 +298,8 @@ impl ZeroIDC {
|
|
|
|
|
panic!("expiration is None. This shouldn't happen") |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
panic!("error parsing claims"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
(*inner_local.lock().unwrap()) |
|
|
|
|
@ -592,6 +595,8 @@ impl ZeroIDC {
|
|
|
|
|
panic!("expiration is None. This shouldn't happen"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
panic!("Failed to parse token"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
i.access_token = Some(tok.access_token().clone()); |
|
|
|
|
|