From 3670b8cefd94342c228fee501b966e440fcca7f0 Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Tue, 29 Mar 2022 10:33:27 -0700 Subject: [PATCH] another at->idt for exp --- zeroidc/src/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/zeroidc/src/lib.rs b/zeroidc/src/lib.rs index 2a1e423d0..76bccc9e3 100644 --- a/zeroidc/src/lib.rs +++ b/zeroidc/src/lib.rs @@ -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>, jwt::Error>= Token::parse_unverified(at); + let t: Result>, jwt::Error> = + Token::parse_unverified(idt); if let Ok(t) = t { let claims = t.claims().registered.clone();