diff --git a/server/api/github.ts b/server/api/github.ts index 764cc9b..cd723a2 100644 --- a/server/api/github.ts +++ b/server/api/github.ts @@ -19,7 +19,7 @@ async function oauth(code: string) { }) const body = await res.json() - const { accessToken, scope, error_description: errorDescription } = body + const { access_token: accessToken, scope, error_description: errorDescription } = body if (errorDescription) { throw new Error(errorDescription) } else if (scope !== 'repo' || !accessToken || !(typeof accessToken === 'string')) {