roryqi commented on code in PR #10673:
URL: https://github.com/apache/gravitino/pull/10673#discussion_r3057401639


##########
server-common/src/main/java/org/apache/gravitino/server/authentication/JwksTokenValidator.java:
##########
@@ -161,6 +163,12 @@ public Principal validateToken(String token, String 
serviceAudience) {
       }
       return userPrincipal;
 
+    } catch (BadJWTException e) {

Review Comment:
   Could u use
   ```
   package com.nimbusds.jwt.proc;
   
   public class ExpiredJWTException extends BadJWTException {
       public ExpiredJWTException(String message) {
           super(message);
       }
   }
   ```



##########
server-common/src/main/java/org/apache/gravitino/server/authentication/JwksTokenValidator.java:
##########
@@ -161,6 +163,12 @@ public Principal validateToken(String token, String 
serviceAudience) {
       }
       return userPrincipal;
 
+    } catch (BadJWTException e) {

Review Comment:
   Could u use here?
   ```
   package com.nimbusds.jwt.proc;
   
   public class ExpiredJWTException extends BadJWTException {
       public ExpiredJWTException(String message) {
           super(message);
       }
   }
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to