diff --git a/src/home/authentication.ts b/src/home/authentication.ts index 41fe11ae..c110f705 100644 --- a/src/home/authentication.ts +++ b/src/home/authentication.ts @@ -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(); - } }