mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-26 01:45:15 +00:00
type
This commit is contained in:
parent
fd5976f378
commit
7670f364e3
2 changed files with 7 additions and 7 deletions
|
@ -167,7 +167,7 @@ export class GithubServerService {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const { accessToken } = await new Promise<any>((res, rej) =>
|
const { accessToken } = await new Promise<{ accessToken: string }>((res, rej) =>
|
||||||
oauth2!.getOAuthAccessToken(code, {
|
oauth2!.getOAuthAccessToken(code, {
|
||||||
redirect_uri,
|
redirect_uri,
|
||||||
}, (err, accessToken, refresh, result) => {
|
}, (err, accessToken, refresh, result) => {
|
||||||
|
@ -219,7 +219,7 @@ export class GithubServerService {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const { accessToken } = await new Promise<any>((res, rej) =>
|
const { accessToken } = await new Promise<{ accessToken: string }>((res, rej) =>
|
||||||
oauth2!.getOAuthAccessToken(
|
oauth2!.getOAuthAccessToken(
|
||||||
code,
|
code,
|
||||||
{ redirect_uri },
|
{ redirect_uri },
|
||||||
|
|
Loading…
Reference in a new issue