We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9915d18 commit cfc0d96Copy full SHA for cfc0d96
springboot-starter-security-jwt/src/main/java/com/codingapi/springboot/security/jwt/TokenContext.java
@@ -7,6 +7,6 @@ public class TokenContext {
7
private TokenContext(){}
8
9
public static Token current(){
10
- return (Token)SecurityContextHolder.getContext().getAuthentication().getCredentials();
+ return (Token) SecurityContextHolder.getContext().getAuthentication().getPrincipal();
11
}
12
0 commit comments