diff --git a/src/main/java/com/consola/lis/jwt/JwtService.java b/src/main/java/com/consola/lis/jwt/JwtService.java index dae037e..014ec51 100644 --- a/src/main/java/com/consola/lis/jwt/JwtService.java +++ b/src/main/java/com/consola/lis/jwt/JwtService.java @@ -37,6 +37,8 @@ private String getToken(Map extraClaims, User user) { .claims(extraClaims) .claim("id", user.getId()) .claim("role", user.getRole()) + .claim("name", user.getName()) + .claim("username", user.getUsername()) .subject(user.getUsername()) .issuedAt(new Date(System.currentTimeMillis())) .expiration(new Date(System.currentTimeMillis() + 1000 * 60 * 24))