sprygen generate-auth
Need to inject a secure JWT layer into an existing codebase? This command drafts JwtService, JwtAuthFilter, SecurityConfig, and all Auth DTOs straight into your src/main/java.
Features
- Stateless Authentication: Completely drops sessions, suitable for external API consumption and modern SPA frontends (React, Angular, Vue).
- Security Filters: Configures
OncePerRequestFilterto gracefully interpret Bearer tokens. - DTOs & Controllers: Generates
/api/v1/auth/loginand/api/v1/auth/registerendpoints out of the box.
Usage:
sprygen generate-auth