Phase 1, Task 6: Ed25519 JWT Service #19
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Plan Reference
docs/superpowers/plans/2026-03-29-phase-1-foundation-auth.md→ Task 6Scope
JwtConfig— Ed25519 key pair generation (java.security.KeyPairGenerator)JwtServicefull implementation — manual JWT construction (header.payload.signature) with Ed25519 signinggenerateToken(UserEntity)— JWT with sub, uid, name, roles, iat, exp claimsextractEmail(String),extractUserId(String),extractRoles(String)isTokenValid(String)— signature verification + expiry checkWhy No JWT Library?
Ed25519 (EdDSA) support in Java JWT libraries is inconsistent. Manual construction is simpler and avoids the dependency. Consistent with cameleer3-server's Ed25519 config signing pattern.
Steps
Depends On
Related Epics