mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-06 20:43:44 +02:00
cleanup
This commit is contained in:
parent
9c487cbfb8
commit
c380a4e4bd
1 changed files with 0 additions and 6 deletions
|
@ -63,11 +63,6 @@ impl Inner {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Serialize, Deserialize)]
|
|
||||||
struct Exp {
|
|
||||||
exp: u64
|
|
||||||
}
|
|
||||||
|
|
||||||
fn csrf_func(csrf_token: String) -> Box<dyn Fn() -> CsrfToken> {
|
fn csrf_func(csrf_token: String) -> Box<dyn Fn() -> CsrfToken> {
|
||||||
return Box::new(move || CsrfToken::new(csrf_token.to_string()));
|
return Box::new(move || CsrfToken::new(csrf_token.to_string()));
|
||||||
}
|
}
|
||||||
|
@ -548,7 +543,6 @@ impl ZeroIDC {
|
||||||
|
|
||||||
let at = tok.access_token().secret();
|
let at = tok.access_token().secret();
|
||||||
|
|
||||||
// see previous note about this function's use
|
|
||||||
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(at);
|
||||||
|
|
||||||
if let Ok(t) = t {
|
if let Ok(t) = t {
|
||||||
|
|
Loading…
Add table
Reference in a new issue