diff options
| author | Maze <167211895+mazeincoding@users.noreply.github.com> | 2025-07-12 16:38:32 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-12 16:38:32 +0200 |
| commit | a9b02df2e31301ce1ab7867699701e8ea06231e8 (patch) | |
| tree | b7103c3aa69f21e1ce7cb50fb449829db6a18ef5 /apps/web/src/hooks/auth/useLogin.ts | |
| parent | b76e84354d7b323b200b9be84e0c7f9adc8b211f (diff) | |
| parent | 3e45be5c4701c74b613f1629fe73a055b7fe108c (diff) | |
| download | opencut-a9b02df2e31301ce1ab7867699701e8ea06231e8.tar.gz | |
Merge pull request #185 from omraval18/fix/login-redirect-issue
fix: redirects to /projects after login instead of /editor
Diffstat (limited to 'apps/web/src/hooks/auth/useLogin.ts')
| -rw-r--r-- | apps/web/src/hooks/auth/useLogin.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/web/src/hooks/auth/useLogin.ts b/apps/web/src/hooks/auth/useLogin.ts index 3737deb3..12eddcbf 100644 --- a/apps/web/src/hooks/auth/useLogin.ts +++ b/apps/web/src/hooks/auth/useLogin.ts @@ -25,7 +25,7 @@ export function useLogin() { return; } - router.push("/editor"); + router.push("/projects"); }, [router, email, password]); const handleGoogleLogin = async () => { @@ -35,7 +35,7 @@ export function useLogin() { try { await signIn.social({ provider: "google", - callbackURL: "/editor", + callbackURL: "/projects", }); } catch (error) { setError("Failed to sign in with Google. Please try again."); |
