Skip to content

Commit de15ffc

Browse files
committed
fix key parser redundant variable
1 parent fb9ef71 commit de15ffc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main/java/edu/byu/cs/util/JwtUtils.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,14 +86,12 @@ public static String validateTokenAgainstKeys(String token){
8686
}
8787
return null;
8888
};
89-
String netId;
90-
netId = Jwts.parser()
89+
return Jwts.parser()
9190
.keyLocator(locator)
9291
.build()
9392
.parseSignedClaims(token)
9493
.getPayload()
9594
.getSubject();
96-
return netId;
9795
}
9896

9997
public static void readJWKs(String json){

0 commit comments

Comments
 (0)