Skip to content

Commit

Permalink
Merge pull request #135 from rmarscher/lucia-password-reset-redirect
Browse files Browse the repository at this point in the history
Fix sign-in link after password reset
  • Loading branch information
timothymiller authored Dec 28, 2023
2 parents ebdd695 + 288a151 commit 4803ec7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/app/features/password-reset/screen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function PasswordResetScreen() {
// Send email with the password reset link
const res = await signIn({ email })
toast.show('Password reset email sent')
push('/login')
push('/sign-in')
} catch (error) {
if (error) {
if (
Expand Down
2 changes: 1 addition & 1 deletion packages/app/utils/auth/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ export type SessionRedirectProps = {
* Examples:
* ```
* useSessionRedirect({ true: '/' }})
* useSessionRedirect({ false: '/login' }})
* useSessionRedirect({ false: '/sign-in' }})
* ```
*/
export function useSessionRedirect(props: SessionRedirectProps = { true: '/', false: '/' }) {
Expand Down

0 comments on commit 4803ec7

Please sign in to comment.