Skip to content

Commit

Permalink
dfg
Browse files Browse the repository at this point in the history
  • Loading branch information
codergautam committed Oct 15, 2024
1 parent c8db444 commit 52dcdf1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions components/auth/auth.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { useGoogleLogin } from "@react-oauth/google";
import { inIframe } from "../utils/inIframe";
import { toast } from "react-toastify";

// secret: userDb.secret, username: userDb.username, email: userDb.email, staff: userDb.staff, canMakeClues: userDb.canMakeClues, supporter: userDb.supporter
let session = false;
Expand All @@ -22,6 +23,12 @@ export function signIn() {
const url = window.location.href;
window.open(url, '_blank');
}

if(!process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID) {
toast.error("Google client ID not set");
return;
}

window.login();

}
Expand Down

0 comments on commit 52dcdf1

Please sign in to comment.