diff options
| author | omraval18 <r.auckwell18@gmail.com> | 2025-07-11 00:33:31 +0530 |
|---|---|---|
| committer | omraval18 <r.auckwell18@gmail.com> | 2025-07-11 00:33:31 +0530 |
| commit | 3e45be5c4701c74b613f1629fe73a055b7fe108c (patch) | |
| tree | a2228b0be3367d811d23b5e95c8cce9c2e31e5e0 /apps/web/src/hooks/auth/useLogin.ts | |
| parent | e8b0057cc44c90af24f52e44ada60493e6ef6311 (diff) | |
| download | opencut-3e45be5c4701c74b613f1629fe73a055b7fe108c.tar.gz | |
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."); |
