Skip to content

Commit

Permalink
Merge pull request #162 from zugdev/fix-auth-double-render
Browse files Browse the repository at this point in the history
  • Loading branch information
0x4007 authored Nov 10, 2024
2 parents e78dbeb + 56c94b0 commit b5a84f7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/home/authentication.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@ export async function authentication() {
return;
}

const accessToken = await getGitHubAccessToken();
if (!accessToken) {
renderGitHubLoginButton();
}

const gitHubUser: null | GitHubUser = await getGitHubUser();
if (gitHubUser) {
await trackReferralCode();
await displayGitHubUserInformation(gitHubUser);
}
const accessToken = await getGitHubAccessToken();
if (!accessToken) {
renderGitHubLoginButton();
}
}

0 comments on commit b5a84f7

Please sign in to comment.