Minor cleanup.
This commit is contained in:
parent
84e0c8a2a4
commit
68b18e6e70
@ -73,7 +73,7 @@ impl GlobalContext {
|
||||
.map_err(|e| format!("Bad jwt token: {:?}", e))?;
|
||||
|
||||
if !verify_token(&token, self.jwt_secret.as_ref())? {
|
||||
return Err(format!("Invalid token {:?}", token))?;
|
||||
return Err(format!("Invalid token {:?}", token));
|
||||
}
|
||||
let claims = token.payload;
|
||||
debug!("Verified token for: {:?}", claims);
|
||||
|
Loading…
Reference in New Issue
Block a user