Skip to content

Commit a1ef493

Browse files
committed
fix: add missing await
1 parent ebfdbed commit a1ef493

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/proxy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ function createProxy(config: Config): Hono {
128128
}
129129

130130
console.log('authorizing refresh token')
131-
authorizeRefreshToken(refresh_token)
131+
await authorizeRefreshToken(refresh_token)
132132
.then(({
133133
access_token: refreshed_access_token,
134134
expires_in: refreshed_expires_in,
@@ -161,7 +161,7 @@ function createProxy(config: Config): Hono {
161161
if (typeof code === 'undefined') {
162162
throw new Error('code is undefined')
163163
}
164-
authorizeCode(code)
164+
await authorizeCode(code)
165165
.then(({
166166
access_token,
167167
expires_in,

0 commit comments

Comments
 (0)