What are best solutions for hold OTP

I want to create a no password system so user login with email and i sent verification code to the user.

  1. user enter email and send request
  2. server check email if exist send the otp number to user’s email
  3. server need hold otp number so later on compare with user number

i want to now in the server side what is the best solution for hold otp code db, file, etc

I want to achieve best security and speed for APIs.

Back to Top