Skip to content

Commit

Permalink
Removes debug print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbs committed Mar 2, 2023
1 parent ad30240 commit cfac3a6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/Slack/SlackClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export class SlackClient {
}, {
"Authorization": "Bearer " + this.token
})
console.log(JSON.stringify(response, null, 2))
this.processResponse(response)
}

Expand All @@ -38,7 +37,6 @@ export class SlackClient {
}, {
"Authorization": "Bearer " + this.token
})
console.log(JSON.stringify(response, null, 2))
this.processResponse(response)
}

Expand Down
2 changes: 0 additions & 2 deletions src/verifySlackSignature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,13 @@ export async function verifySlackSignature(request: Request, signingSecret: stri
const content = await request.text()
const authString = `${SIGN_VERSION}:${timestamp}:${content}`
let encoder = new TextEncoder()
console.log("DASD")
const key = await crypto.subtle.importKey(
"raw",
encoder.encode(signingSecret),
{ name: "HMAC", hash: "SHA-256" },
false,
["verify"]
)
console.log("GASD")
return await crypto.subtle.verify(
"HMAC",
key,
Expand Down

0 comments on commit cfac3a6

Please sign in to comment.