Skip to content

Commit

Permalink
πŸ“ ::
Browse files Browse the repository at this point in the history
  • Loading branch information
gurdl0525 committed Nov 16, 2023
1 parent bc04453 commit 528e27e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class AuthController(
@GetMapping("/test")
fun testToken(): String = Jwts.builder()
.signWith(SignatureAlgorithm.HS256, jwtProperty.secretKey)
.setSubject(userRepository.findAll().randomOrNull()?.sub)
.setSubject("111899969632443851953")
.setIssuedAt(Date())
.setExpiration(Date(Date().time.plus(2592000000)))
.compact()
Expand Down

0 comments on commit 528e27e

Please sign in to comment.