This is a boilerplate created with authentication implemented with JWT refresh token strategy in front-end and back-end
Built with Node.js + typescript + express and using clean architecture concepts trying to ensure SOLID principes
- Domain: Models and useCases protocols
- Application: Business rules implementation
- Presentation: Implements controllers
- Infrastructure: external libraries adapters
- Main: Consolidate all layers
Built with Next.js + typescript with axios interceptors configuration to treat refresh token
- Created Auth context to manage user credentials
- Configured interceptors to deal with expires token and queue requests to be resolved after refresh token if needed
This boilerplate is MIT licensed