Skip to content

Commit

Permalink
add delay for login redirection
Browse files Browse the repository at this point in the history
  • Loading branch information
Xtremilicious committed Oct 22, 2024
1 parent 9558c50 commit 367bbe5
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/components/GitHubLogin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,19 @@ const GithubLoginButton = () => {
// Redirect to the NextAuth authentication route
//window.location.href = "/api/auth/signin/github";
analytics.track("Sign In Clicked", {});
signIn("github");
setTimeout(() => {
signIn("github");
}, 1500);
};

const handleLogout = () => {
//window.location.href = "/api/auth/signout";
analytics.track("Sign In Clicked", {
analytics.track("Sign Out Clicked", {
user: session?.user,
});
signOut();
setTimeout(() => {
signOut();
}, 1500);
};

return (
Expand Down

0 comments on commit 367bbe5

Please sign in to comment.