Skip to content

Commit

Permalink
added toast info while waiting for redirect
Browse files Browse the repository at this point in the history
Signed-off-by: sayyedarib <[email protected]>
  • Loading branch information
sayyedarib committed Oct 6, 2023
1 parent 5d31734 commit 8ac6ea6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions components/basic/Overlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ const Overlay = ({ callbackFunction, onDisappear }) => {
setInterval(() => {
if (typeof window !== "undefined") {
if (document.querySelector("#credential_picker_container") !== null) {
document.querySelector("#overlay").classList.add("show");
document.querySelector("#overlay")?.classList.add("show");
}
}
}, 1300);

google.accounts.id.initialize({
client_id:
"1094459761-kbb3qbgafu8avkgfe9fk8f85fr5418a8.apps.googleusercontent.com",
process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID,
callback: handleCallbackResponse,
});

Expand Down
5 changes: 2 additions & 3 deletions pages/auth/login.page.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,8 @@ function login() {
const { data: res } = await axios.post(url, userObject, {
withCredentials: true,
});

console.log(res);


toast.info('redirecting to home page');
if (entityType === "user") {
const userData = {
user_name: userObject.name,
Expand Down

0 comments on commit 8ac6ea6

Please sign in to comment.