Skip to content

Wiring auth frontend and backend #191

@Vaibhav978

Description

@Vaibhav978

Is your feature request related to a problem? Please describe.
We're wiring the frontend and backend together for the auth login flow.
Describe the solution you'd like
A clear and concise description of what you want to happen.

  1. AuthContext — add two missing methods:

forgotPassword(email) → POST /forgot-password
resetPassword(email, code, newPassword) → POST /reset-password
2. Login page — call useAuth().login(), add form validation, fix "Forgot password?" link to point to /forgot-password

  1. Create page routes for the reset flow (these components have no URL yet):

/forgot-password → renders ResetPasswordForm then ResetLinkSet after submission
/reset-password → renders NewPasswordForm then ResetPasswordConfirmation after submission
4. Wire the reset components to their AuthContext methods and fix all the dead href="#" links

  1. Pass email through the reset flow — ResetLinkSet currently hardcodes name@gmail.com, needs the actual email the user entered

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions