A modern, secure authentication system built with Micronaut framework and JWT (JSON Web Tokens). This project provides a complete authentication solution with beautiful UI components built using Tailwind CSS and Alpine.js.
- 🔑 JWT-based Authentication: Secure token-based authentication system
- 👤 User Management: Registration, login, and profile management
- 🔄 Token Refresh: Automatic token refreshing mechanism
- 🔒 Role-based Access Control: Granular permissions for different user types
- 🎨 Modern UI: Responsive design built with Tailwind CSS and Alpine.js
- 📱 API-Ready: RESTful API endpoints for integration with any frontend
- Micronaut Framework - Modern, JVM-based framework
- Java 17 - Latest LTS Java version
- JWT (JJWT) - JSON Web Token implementation
- Hibernate/JPA - Object-relational mapping
- Tailwind CSS - Utility-first CSS framework
- Alpine.js - Lightweight JavaScript framework
- Chart.js - Interactive charts and graphs
- Animate.css - CSS animations library
- Java 17 or later
- Maven 3.8 or later
git clone https://github.com/Vin-it-9/Micronaut-JWT.git
cd Micronaut-JWT./gradlew runThe application will be available at http://localhost:8080
POST /api/auth/register - Register a new user
POST /api/auth/login - Login and receive JWT tokens
POST /api/auth/logout - Invalidate current token
POST /api/auth/refresh - Refresh an expired access token
GET /api/user/me - Get current user profile
PUT /api/user/me - Update user profile
DELETE /api/user/me - Delete user account
| Property | Description | Default Value |
|---|---|---|
jwt.secret |
Secret key for signing JWT tokens | Required |
jwt.accessToken.expiration |
Access token expiration time in seconds | 3600 (1 hour) |
jwt.refreshToken.expiration |
Refresh token expiration time in seconds | 2592000 (30 days) |
security.oauth.enabled |
Enable OAuth providers | false |



