Skip to content

Authentication System API is a REST API that takes care of signup, signin, update account, forgot password, reset password, refresh token, get users, get user, delete user.

Notifications You must be signed in to change notification settings

amarachigoodness74/authentication_system_REST-API

Repository files navigation

Authentication System API

Description

Authentication System API is an authentication REST API that takes care of signup, signin, update account, forgot password, reset password, refresh token, get users, get user, and delete user.

Installation

Clone the repository and cd into the project directory
Run npm install or yarn install to install all project dependencies
Create .env file and add your database details - Check .env.example file
Run npm run develop or yarn develop to start the local server which will run on localhost:1337

Usage

API Endpoints

  • POST /api/auth/login to log in to your account with an access token and create your session
  • POST /api/auth/forgot-password to request a link to change the password
  • PUT /api/auth/reset-password to update the account password
  • PUT /api/auth/refresh-token to get a new access token every 10 minutes to keep the user authenticated if the session is still active
  • GET /api/auth/logout to logout of your account and destroy your session
  • POST /api/users to create user's account
  • GET /api/users to get all users
  • GET /api/users/:userId to get a user's data by id
  • PUT /api/users/:userId to update a user's data by id
  • DELETE /api/users/:userId to delete the user's account by id

Built With

Node/Express - The web framework used
MongoDB - DataBase Management System
Redis - For session management

Contributing:

To contribute, raise an issue and it will be reviewed

Author

Amarachi Goodness

License

This project is licensed under the ISC License

About

Authentication System API is a REST API that takes care of signup, signin, update account, forgot password, reset password, refresh token, get users, get user, delete user.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published