Skip to content
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

Merged
merged 6 commits into from
Aug 9, 2024
Merged

Forgot pwd fix #208

merged 6 commits into from
Aug 9, 2024

Conversation

NancyAanchal
Copy link
Contributor

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

Copy link

cloudflare-workers-and-pages bot commented Aug 9, 2024

Deploying nepalingo with  Cloudflare Pages  Cloudflare Pages

Latest commit: b8cb38d
Status: ✅  Deploy successful!
Preview URL: https://6fe99d41.nepalingo.pages.dev
Branch Preview URL: https://forgot-pwd-fix.nepalingo.pages.dev

View logs

Copy link
Member

@binamkayastha binamkayastha left a 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.

@@ -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",
Copy link
Member

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.",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh that's neat

@NancyAanchal NancyAanchal merged commit 0194767 into main Aug 9, 2024
2 checks passed
@NancyAanchal NancyAanchal deleted the forgot-pwd-fix branch August 9, 2024 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants