Skip to content

Commit

Permalink
tried fixign forgot-passowrd-2
Browse files Browse the repository at this point in the history
  • Loading branch information
NancyAanchal committed Aug 9, 2024
1 parent c5840f9 commit 7559903
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nepalingo-web/src/hooks/Auth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ const AuthContext = createContext<AuthContextProps>({
signIn: (data) => supabaseClient.auth.signInWithPassword(data),
resetPasswordEmail: (email) =>
supabaseClient.auth.resetPasswordForEmail(email, {
//redirectTo: "https://www.nepalingo.com/reset-password",
redirectTo: "http://localhost:5173/reset-password",
redirectTo: "https://www.nepalingo.com/reset-password",
//redirectTo: "http://localhost:5173/reset-password",
}),
resetPassword: (password) => supabaseClient.auth.updateUser({ password }),
});
Expand Down Expand Up @@ -74,8 +74,8 @@ export const AuthProvider = ({ children }: { children: React.ReactNode }) => {
signIn: (data) => supabaseClient.auth.signInWithPassword(data),
resetPasswordEmail: (email) =>
supabaseClient.auth.resetPasswordForEmail(email, {
//redirectTo: "https://www.nepalingo.com/reset-password",
redirectTo: "http://localhost:5173/reset-password",
redirectTo: "https://www.nepalingo.com/reset-password",
//redirectTo: "http://localhost:5173/reset-password",
}),
resetPassword: async (password: string) => {
// Attempt to restore the session using the access token in the URL
Expand Down

0 comments on commit 7559903

Please sign in to comment.