🔇 (token)

This commit is contained in:
Julien Calixte
2021-05-09 01:07:05 +02:00
parent 9afe9ef289
commit a98f30cfcd

View File

@@ -44,8 +44,6 @@ export const refreshToken = async () => {
return null return null
} }
console.log(accessToken.refreshToken)
if (await needToRefreshToken()) { if (await needToRefreshToken()) {
const authenticationServerURL = new URL(AUTHENTICATION_SERVER) const authenticationServerURL = new URL(AUTHENTICATION_SERVER)
authenticationServerURL.searchParams.set('type', 'refresh') authenticationServerURL.searchParams.set('type', 'refresh')
@@ -56,8 +54,6 @@ export const refreshToken = async () => {
| GithubToken | GithubToken
| GithubTokenError | GithubTokenError
console.log(githubToken)
if ('error' in githubToken) { if ('error' in githubToken) {
return null return null
} }
@@ -103,8 +99,6 @@ export const saveAccessToken = async (githubToken: GithubToken) => {
username: '' username: ''
} }
console.log(accessToken)
const octokit = new Octokit({ const octokit = new Octokit({
auth: accessToken?.token auth: accessToken?.token
}) })