🔇 (token)
This commit is contained in:
@@ -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
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user