Skip to content

Expose OTP cooldown retry time in send-otp response #1

@subhash-22-codes

Description

@subhash-22-codes

Endpoint:
POST /send-otp

Problem:
The current cooldown response returns a static message and does not expose remaining retry duration.

Because of this, frontend cannot show an accurate resend countdown timer.

Expected:

  • calculate remaining cooldown duration
  • expose retry metadata in response
  • frontend should be able to consume this value for resend UX

Possible files:

  • backend/app/api/auth.py
  • frontend/src/pages/Register.tsx

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions