Phone Authentication REST API using Twilio service in NodeJS OTP Verification

Поделиться
HTML-код
  • Опубликовано: 20 янв 2025

Комментарии • 52

  • @ishwaksharda1506
    @ishwaksharda1506 8 месяцев назад +3

    Having the OTP field global in the file is no recommended and not a good implementation. Imagine two users request otps. The first user's OTP will be overwritten by the last user and they will receive invalid otp. Now scale that up to a mass production application. It becomes randomic if you will be able to validate or not. The good approach should be to create an otp field for each user and save the value there. Then, we the user enters the otp, you match the value from that particular user's otp field.

    • @TechnicalRajni
      @TechnicalRajni  8 месяцев назад +1

      That's is good i also do that way it's just a demo for the implementation

  • @RockStar0909
    @RockStar0909 11 месяцев назад +2

    twilio trial account can send otp to verified numbe what about remaining numbers??

  • @mcijey
    @mcijey Год назад +2

    this working to masive users?

  • @shubhamjaiswal5077
    @shubhamjaiswal5077 Год назад +2

    where did you get the message service id

  • @skmahmoodsameer2933
    @skmahmoodsameer2933 Год назад +1

    Following same process.
    I receive OTP to my mobile number which is also in Twilio account.
    but when i enter other's number they are not getting OTP
    [ RestException [Error]: The number is unverified. ] err is coming.
    What to do?

    • @TechnicalRajni
      @TechnicalRajni  Год назад

      In the test account this is the issue I think

  • @prateeksharma4430
    @prateeksharma4430 9 месяцев назад +1

    does any body got the code file?

  • @krishnakanthati8510
    @krishnakanthati8510 Год назад +1

    Is Twilio SMS gateway free? Where can I find its pricing?

  • @SSCODanish
    @SSCODanish Год назад +1

    Means plzzz make a whole process video

    • @TechnicalRajni
      @TechnicalRajni  Год назад

      Its not complete

    • @SSCODanish
      @SSCODanish Год назад

      @@TechnicalRajni but maam iam getting error I have written same code as shown in the video

    • @SSCODanish
      @SSCODanish Год назад +1

      @@TechnicalRajni I think I am getting mistakes in file and module exporting plzzz help me it's urgent

    • @TechnicalRajni
      @TechnicalRajni  Год назад

      @@SSCODanish file names and ping me on my email ☺️

  • @rajkumarp9943
    @rajkumarp9943 Год назад +1

    to : I placed that req.body.number. but OTP is generated but not show on msg in my OTP.

  • @gamerquantum2847
    @gamerquantum2847 Год назад +1

    How to get messagingSeviceSid

  • @SSCODanish
    @SSCODanish Год назад +1

    Plzzz share whole process

    • @TechnicalRajni
      @TechnicalRajni  Год назад

      i am not getting the point please explain what do u need

  • @AniketJadhao-v9y
    @AniketJadhao-v9y Год назад +1

    Bro they give me error

  • @patelmonil7649
    @patelmonil7649 Год назад +1

    messagingservicesid how to get it

    • @TechnicalRajni
      @TechnicalRajni  Год назад

      From twilio account

    • @patelmonil7649
      @patelmonil7649 Год назад +1

      @@TechnicalRajni but for this we have to add sender which sender you use phone number? or alpha sender can you explain setup for this i am not geting sms in mobile after adding messagingservicesid

    • @TechnicalRajni
      @TechnicalRajni  Год назад

      @@patelmonil7649 that is twilio settings

    • @rajkumarp9943
      @rajkumarp9943 Год назад

      @@patelmonil7649 I faced same issues

  • @Sebastian-Wilder-01
    @Sebastian-Wilder-01 3 месяца назад +1

    Man, you just made a video without sharing or showing the main code, ?????????? seriously????????

    • @TechnicalRajni
      @TechnicalRajni  3 месяца назад

      No that's not possible 😔 definitely I show the code 😔 I will review the video again

  • @ronysingha4971
    @ronysingha4971 Год назад +1

    Can you share the code ?

    • @TechnicalRajni
      @TechnicalRajni  Год назад

      I will share some specific files from which u are getting issues

  • @yashvijaybombale6896
    @yashvijaybombale6896 5 месяцев назад +1

    dont use its useless twilio trail account only sent sms to verified number which is yours only ,i wasted my time

    • @TechnicalRajni
      @TechnicalRajni  5 месяцев назад

      @@yashvijaybombale6896 but if someone wants to use they can

  • @gtcwebdev8344
    @gtcwebdev8344 Год назад +1

    With this aproach you don't avoid Toll Fraud... If anyone find this route and send multiple requests do signup with fake numbers, you will spend a fortune in SMS.

    • @TechnicalRajni
      @TechnicalRajni  Год назад

      Then please add authentication to it

    • @gtcwebdev8344
      @gtcwebdev8344 Год назад +1

      ​@@TechnicalRajni But if it is a signup route, the user is not yet registered, the user needs to confirm the phone number to conclude the registration and then authenticate in the application. So in this case, one approach would be to add some rate limiter validation to prevent the user from sending multiple SMS in a short time interval, create a blacklist with the user's Public IP, add a CAPTCHA in the front-end, and even send a unique token along with your app request to identify that the request comes from your app and not from some other server or VPN.

    • @TechnicalRajni
      @TechnicalRajni  Год назад +1

      I have also one idea to use aws cognito to enhance the security

  • @laraibanwar1618
    @laraibanwar1618 Год назад +1

    put the code link brother

  • @michellebentulan289
    @michellebentulan289 3 месяца назад +1

    Is this free?

    • @TechnicalRajni
      @TechnicalRajni  3 месяца назад

      Some credit free to test after that paid

  • @SMITSHINGALA
    @SMITSHINGALA Год назад +1

    github link where
    ???