Skip to content

Commit

Permalink
revert($AuthCenter): remove TODO
Browse files Browse the repository at this point in the history
Don't generate authority information in JWT.
.claim("authorities", authorities)

[skip ci]
  • Loading branch information
Johnny Miller (锺俊) committed Dec 30, 2020
1 parent e3817f7 commit de11944
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public String createJwt(Boolean rememberMe, Long id, String subject, List<String
.setIssuedAt(now)
.signWith(secretKey)
.claim("roles", roles);
// TODO: Don't generate authority information in JWT.
// Don't generate authority information in JWT.
// .claim("authorities", authorities)
// Set expire duration of JWT.
val ttl = rememberMe ? jwtConfiguration.getTtlForRememberMe() : jwtConfiguration.getTtl();
Expand Down

0 comments on commit de11944

Please sign in to comment.