another at->idt for exp

This commit is contained in:
Grant Limberg 2022-03-29 10:33:27 -07:00
parent 425f5201a2
commit 3670b8cefd
No known key found for this signature in database
GPG Key ID: 8F2F97D3BE8D7735

View File

@ -241,9 +241,10 @@ impl ZeroIDC {
}
let access_token = res.access_token();
let at = access_token.secret();
let idt = &id_token.to_string();
let t: Result<Token<jwt::Header, jwt::Claims, jwt::Unverified<'_>>, jwt::Error>= Token::parse_unverified(at);
let t: Result<Token<jwt::Header, jwt::Claims, jwt::Unverified<'_>>, jwt::Error> =
Token::parse_unverified(idt);
if let Ok(t) = t {
let claims = t.claims().registered.clone();