keyshade
keyshade copied to clipboard
PLATFORM: Implement resend OTP flow
Description
In the current auth
flow, we don't have a resent OTP button, meaning if the OTP times out, you don't have a way to get the OTP. You need to implement the resent OTP in the /auth/otp
.
Scope of Work
- You need to implement the UI for resend OTP flow in the
apps/platform/src/app/auth/otp/page.tsx
page. - When the resent OTP button is clicked, you need to call
{BASE_URL}/api/auth/send-otp/:email
endpoint