Giter Club home page Giter Club logo

password-reset's Introduction

A Password Reset Service Using SendGrid API

How It Works:

This microservice is responsible for resetting a user's password by sending them an email containing a unique link generated with SendGrid's email API.

When the user clicks on the link, the service verifies that the link is valid, and if so, allows the user to enter a new password. The microservice then updates the user's password using the bcrypt hashing algorithm, which is a secure way of encrypting passwords. Finally, the microservice returns a JSON Web Token (JWT) login token to the user, which can be used for subsequent authentication, and the user is automatically logged in.

Overall, this microservice provides a secure and efficient way for users to reset their passwords, while also ensuring that their personal information remains protected.

Must have a SendGrid account and Authorization Token from SendGrid and email templates need to be created using SendGrid Client.

  • User clicks "Forgot Password" and enters their email.
  • User's email & SendGrid template ID is sent to Node service
  • Node service verifies that the email is registered and looks up user ID.
  • A token is created and used to generate a link.
  • The token link, userID, and SendGrid Authorization Token are sent to SendGrid's email template, and an email is sent to the user.
  • The user clicks on the link in the email & the backend verifies the link is valid and has not been used.
  • The user is then able to reset their password which is sent to the Node backend and updated in the users table.

password-reset's People

Contributors

apullenb avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.