Skip to content

Commit

Permalink
fix slack provider (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
pilcrowonpaper authored May 8, 2024
1 parent 2c0cec9 commit a91c09a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .changesets/jim9j.patch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix Slack provider
1 change: 1 addition & 0 deletions src/providers/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,4 @@ export class GitHub implements OAuth2Provider {
export interface GitHubTokens {
accessToken: string;
}

3 changes: 2 additions & 1 deletion src/providers/slack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ export class Slack implements OAuth2Provider {

public async validateAuthorizationCode(code: string): Promise<SlackTokens> {
const result = await this.client.validateAuthorizationCode<TokenResponseBody>(code, {
credentials: this.clientSecret
credentials: this.clientSecret,
authenticateWith: "request_body"
});
const tokens: SlackTokens = {
accessToken: result.access_token,
Expand Down

0 comments on commit a91c09a

Please sign in to comment.