🐛 (login) refresh token 15 minutes before expiration

This commit is contained in:
2021-05-13 16:34:30 +02:00
parent fce3fd49cf
commit 84ba5fcd46
3 changed files with 7 additions and 14 deletions

View File

@@ -26,7 +26,7 @@ export const getOctokit = async (): Promise<Octokit> => {
const accessToken = await refreshToken()
if (accessToken) {
octokit = new Octokit({
auth: accessToken?.token
auth: accessToken.token
})
}
}