Skip to content

massaaki/auth-with-next-and-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Full stack boilerplate

This is a boilerplate created with authentication implemented with JWT refresh token strategy in front-end and back-end

Backend

Access backend application

Built with Node.js + typescript + express and using clean architecture concepts trying to ensure SOLID principes

Layers

  • Domain: Models and useCases protocols
  • Application: Business rules implementation
  • Presentation: Implements controllers
  • Infrastructure: external libraries adapters
  • Main: Consolidate all layers

Frontend

Access frontend application

Built with Next.js + typescript with axios interceptors configuration to treat refresh token

Structure

  • 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

License

This boilerplate is MIT licensed

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published