You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: crates/common/src/utils.rs
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -381,13 +381,13 @@ mod test {
381
381
assert!(response.is_ok());
382
382
383
383
// Check expired JWT
384
-
let expired_jwt = Jwt::from("eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3NDI5OTU5NDYsIm1vZHVsZSI6IkRBX0NPTU1JVCJ9.iiq4Z2ed2hk3c3c-cn2QOQJWE5XUOc5BoaIPT-I8q-s".to_string());
384
+
let expired_jwt = Jwt::from("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjEyMzQ1Njc4OTAsIm1vZHVsZSI6IkRBX0NPTU1JVCIsImp0aSI6NX0.8P_2nScYiMhs9yUzI5M5QgJ_onQHxjeZ5C28ryx3nM0".to_string());
385
385
let response = validate_jwt(expired_jwt,5,"secret");
let invalid_jwt = Jwt::from("eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3NDI5OTU5NDYsIm1vZHVsZSI6IkRBX0NPTU1JVCJ9.w9WYdDNzgDjYTvjBkk4GGzywGNBYPxnzU2uJWzPUT1s".to_string());
390
+
let invalid_jwt = Jwt::from("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjEyMzQ1Njc4OTAsIm1vZHVsZSI6IkRBX0NPTU1JVCIsImp0aSI6NX0.G8qe1KJkrJZMg6cOjqAWR05z_F0pODVBnl-f6f5_oKs".to_string());
391
391
let response = validate_jwt(invalid_jwt,5,"secret");
0 commit comments