completionId: cgen-438156157e2e46eab4ea57468e7cd734

cgen-438156157e2e46eab4ea57468e7cd734
This commit is contained in:
Builder.io 2025-11-10 20:25:30 +00:00
parent 925e2e8a04
commit 39eba6e831

View file

@ -95,8 +95,8 @@ export default function StaffLogin() {
const handleGoogleSignIn = async () => {
setIsLoading(true);
try {
// Pass the staff dashboard as the intended destination after OAuth completes
await signInWithOAuth("google", "/staff/dashboard");
// Pass the admin dashboard as the intended destination after OAuth completes
await signInWithOAuth("google", "/admin");
} catch (error: any) {
console.error("Google sign-in error:", error);
toastError({