All projects
backendIntermediate

Auth Microservice

Drop-in auth service with email/password, OAuth, MFA, and password reset.

Node.jsFastifyPostgreSQLJWTArgon2

Key features

  • Email/password & OAuth (GitHub, Google)
  • Password reset flows via email
  • TOTP-based MFA
  • Refresh tokens with rotation
  • OpenAPI documentation

Build steps

  1. 1

    Design users, sessions, refresh tokens schema

  2. 2

    Implement signup/login/refresh/logout endpoints

  3. 3

    Add OAuth providers

  4. 4

    Implement TOTP-based MFA

  5. 5

    Generate OpenAPI docs