/mern-authentication-api

Advanced NodeJS Authentication Workflow Api (including password reset and authorizations)

Primary LanguageJavaScript

Mern Authentication Api

An api for an authentication workflow that can be used in a MERN app.

Endpoints

  • Login public route

    POST /api/auth/login

  • Register public route

    POST /api/auth/register

  • Forgot Password public route

    POST /api/auth/forgot

  • Reset Password public route

    PUT /api/auth/:resetToken

  • Show All Users protected route For Admin role

    GET /api/users

  • Show User By Id protected route For Admin or User Owner role

    GET /api/users/:userId

  • Update User protected route For Admin or User Owner role

    PUT /api/users/:userId

  • Delete User protected route For Admin or User Owner role

    DELETE /api/users/:userId