soham0005 / ElectroKart

https://electro-kart-frontend.vercel.app/
MIT License
31 stars 65 forks source link

Adding LogIn via OTP #151

Closed Abhigaba closed 2 weeks ago

Abhigaba commented 1 month ago

To enhance the user login experience, I can create a login using otp system making the website more intuitive.

AdibaNaushad commented 1 month ago

and i can do documentation work

soham0005 commented 1 month ago

@Abhigaba just elaborate more on how you are goinh to implement and which libraries/ packages you are going to use

Abhigaba commented 1 month ago

There are two ways :

  1. Via SMS, it can implemented by using firebase or a third party service like twilio. (Firebase will be free but not twillio)
  2. Via Email, using nodemailer library in the backend to send the email and verifying the otp.

@soham0005 , depending on the requirements it can be imlpemented in both ways.

soham0005 commented 1 month ago

@Abhigaba you can start working on it, you can use any of the method which is free of cost

soham0005 commented 1 month ago

@AdibaNaushad, raise another issue for the documentation you mentioned, i'll assign it to you

soham0005 commented 4 weeks ago

@Abhigaba any updates?

Abhigaba commented 4 weeks ago

@soham0005 , yes I have created the backend part and will be opening the pr for it in a minute. It is successfully running and tested on postman.

Before merging add these things in the .env file

  1. OAUTH_CLIENTID,
  2. OAUTH_CLIENT_SECRET,
  3. OAUTH_REFRESH_TOKEN

you can get these if you follow this "https://www.freecodecamp.org/news/use-nodemailer-to-send-emails-from-your-node-js-server/"

Abhigaba commented 4 weeks ago

Will do the frontend part tomorrow.