completionId: cgen-438156157e2e46eab4ea57468e7cd734
cgen-438156157e2e46eab4ea57468e7cd734
This commit is contained in:
parent
925e2e8a04
commit
39eba6e831
1 changed files with 2 additions and 2 deletions
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Reference in a new issue