Skip to content

This user account system allows for the registration of users using their email and password + OAuth providers. It has full email verification and password reset functionality. It uses PostgreSQL, Express, Passport, and JWT as user tokens.

License

Notifications You must be signed in to change notification settings

RelatedTitle/user-account-system

Repository files navigation

User Account System

Tests

This project was created mainly just for fun and for personal use.

The purpose of this project is to make implementing auth in my future projects easier. Please note that this is my first user auth project, so there may be some security vulnerabilities. Passwords are hashed with bcrypt and JWTs are used as session tokens. I wouldn't recommend using this in any production environment without auditing it first.


Stack:

  • NodeJS
  • PostgreSQL
  • Express
  • Passport

Features:

  • Full user registration and login.
  • Uses CAPTCHA to secure endpoints. Currently supports:
  • OAuth support for the following providers:
    • Discord
    • Facebook
    • GitHub
    • Google
    • Possibly more in the future.
  • JWT for auth.
  • Full password reset & email verification functionality.
  • Ability for users to change their email and password.
  • Adding new authenticated routes is easy.
  • 2FA Support
  • Partial support for user avatars, currently using the user's OAuth provider account's avatar (if registering through an OAuth provider), their Gravatar avatar (if they have one linked to their email address), or a custom avatar they upload. Avatars can be stored:
    • Locally
    • Amazon S3

About

This user account system allows for the registration of users using their email and password + OAuth providers. It has full email verification and password reset functionality. It uses PostgreSQL, Express, Passport, and JWT as user tokens.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors 4

  •  
  •  
  •  
  •