update auth

- add tables and repos
- add dto
This commit is contained in:
Max W.
2025-01-19 19:31:43 +01:00
parent 38c619ae70
commit a8411b6e63
16 changed files with 339 additions and 15 deletions

View File

@@ -73,10 +73,11 @@ public class AuthenticationService {
Date expiryDate = new Date(nowMillis + expirationTime);
return Jwts.builder()
.subject("SharePulse Authentication Token")
.subject("BibleNotes Authentication Token")
.issuedAt(now)
.claim("role", user.getRole())
.claim("username", user.getUsername())
.claim("userId", user.getId())
.expiration(expiryDate)
.signWith(secretKey)
.compact();