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