Skip to content

Commit

Permalink
stronger typing
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnyBnator committed Dec 21, 2021
1 parent 64e1568 commit 3454180
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,8 @@ export class DiscordStrategy<User> extends OAuth2Strategy<
const { access_token, refresh_token, scope, ...extraParams } =
await response.json();
return {
accessToken: access_token,
refreshToken: refresh_token,
accessToken: access_token as string,
refreshToken: refresh_token as string,
extraParams: { ...extraParams, scope: scope.split(" ") },
} as const;
}
Expand Down

0 comments on commit 3454180

Please sign in to comment.