Minor cleanup.

This commit is contained in:
Rasmus Kaj 2020-08-15 19:39:06 +02:00
parent 84e0c8a2a4
commit 68b18e6e70

View File

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