keizerworks / keizer-auth

API for keizer-auth
MIT License
10 stars 9 forks source link

[FEAT] :sparkles: Enhance OTP Verification Security #25

Closed Sudarsh1010 closed 2 weeks ago

Sudarsh1010 commented 2 weeks ago

Description

We need to enhance the security of the OTP verification process, particularly around securing the URL endpoint used for OTP validation. Currently, OTPs are stored in Redis with expiration, but there are security risks around OTP link sharing, expiration, and potential misuse.

Tasks:

1. Secure OTP Verification URL Endpoint

2. Rate-Limiting for OTP Requests

3. Rate-Limiting for OTP Validation Attempts

4. Secure OTP Storage

5. UX Enhancements for OTP Expiry and Retries

Anything else?

No response

Are you willing to submit PR?

Yes