Skip to content

Commit

Permalink
Update auth.js
Browse files Browse the repository at this point in the history
fixes private key format issue

Signed-off-by: Kaxada <[email protected]>
  • Loading branch information
kaxada authored Jan 24, 2024
1 parent c246ebc commit 8c4532a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/github/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const { getUserInfo, getUserRepositories } = require("./APICalls.js");
// instantiate Github App for event handling (webhooks)
const githubApp = new App({
appId: process.env.GITHUB_APP_ID,
privateKey: process.env.GITHUB_APP_PRIVATE_KEY,
privateKey: process.env.GITHUB_APP_PRIVATE_KEY.replace(/\\n/g, '\n'),
oauth: {
clientId: process.env.GITHUB_APP_CLIENT_ID,
clientSecret: process.env.GITHUB_APP_CLIENT_SECRET,
Expand Down

0 comments on commit 8c4532a

Please sign in to comment.