-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Forgot pwd fix #208
Forgot pwd fix #208
Conversation
Deploying nepalingo with Cloudflare Pages
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing this! Auth is always difficult. Feel free to merge in.
nepalingo-web/src/hooks/Auth.tsx
Outdated
@@ -74,8 +73,8 @@ export const AuthProvider = ({ children }: { children: React.ReactNode }) => { | |||
resetPasswordEmail: (email) => | |||
supabaseClient.auth.resetPasswordForEmail(email, { | |||
redirectTo: "https://www.nepalingo.com/reset-password", | |||
//redirectTo: "http://localhost:5173/reset-password", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's remove this comment
navigate("/login", { | ||
state: { | ||
message: | ||
"Password reset successful! Please log in with your new password.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh that's neat
fixed the error with forgot password 'auth session missing' by moving ResetPassoword out of Auth session and handling it separately in the ResetPassword.tsx file