mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2024-12-22 06:17:48 +00:00
another at->idt for exp
This commit is contained in:
parent
130689d82b
commit
5fcaed086d
@ -241,9 +241,10 @@ impl ZeroIDC {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let access_token = res.access_token();
|
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 {
|
if let Ok(t) = t {
|
||||||
let claims = t.claims().registered.clone();
|
let claims = t.claims().registered.clone();
|
||||||
|
Loading…
Reference in New Issue
Block a user