Skip to content

Commit cfc0d96

Browse files
committed
aes encode decode
1 parent 9915d18 commit cfc0d96

File tree

1 file changed

+1
-1
lines changed
  • springboot-starter-security-jwt/src/main/java/com/codingapi/springboot/security/jwt

1 file changed

+1
-1
lines changed

springboot-starter-security-jwt/src/main/java/com/codingapi/springboot/security/jwt/TokenContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ public class TokenContext {
77
private TokenContext(){}
88

99
public static Token current(){
10-
return (Token)SecurityContextHolder.getContext().getAuthentication().getCredentials();
10+
return (Token) SecurityContextHolder.getContext().getAuthentication().getPrincipal();
1111
}
1212
}

0 commit comments

Comments
 (0)