src/main/java/com/feljtech/istudybucket/config/jwt/JwtTokenUtil.java
//   compaction of the JWT to a URL-safe string
compaction of the JWT to a URL-safe string
compaction of the JWT to a URL - safe string
private String doGenerateToken(Map<String, Object> claims, String username) {
        return Jwts.builder()
                .setClaims(claims)
                .setSubject(username)
                .setIssuedAt(new Date(System.currentTimeMillis()))
                .setExpiration(new Date(System.currentTimeMillis() + jwtExpiration))
                .signWith(SignatureAlgorithm.HS512, jwtSecret).compact();
    }
private String doGenerateToken ( Map < String , Object > claims , String username ) { return Jwts . builder ( ) . setClaims ( claims ) . setSubject ( username ) . setIssuedAt ( new Date ( System . currentTimeMillis ( ) ) ) . setExpiration ( new Date ( System . currentTimeMillis ( ) + jwtExpiration ) ) . signWith ( SignatureAlgorithm . HS512 , jwtSecret ) . compact ( ) ; }
compaction of the JWT to a URL-safe string
compaction of the JWT to a URL - safe string