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 () => {
|
const handleGoogleSignIn = async () => {
|
||||||
setIsLoading(true);
|
setIsLoading(true);
|
||||||
try {
|
try {
|
||||||
// Pass the staff dashboard as the intended destination after OAuth completes
|
// Pass the admin dashboard as the intended destination after OAuth completes
|
||||||
await signInWithOAuth("google", "/staff/dashboard");
|
await signInWithOAuth("google", "/admin");
|
||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
console.error("Google sign-in error:", error);
|
console.error("Google sign-in error:", error);
|
||||||
toastError({
|
toastError({
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue