Skip to content

Commit

Permalink
fix(README): typo error in Node.js usage example (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
babblebey committed Feb 5, 2024
1 parent 2088655 commit 36409d8
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Expand Up @@ -197,10 +197,12 @@ If you use Node.js, you can convert the format before passing it to `universal-g
import crypto from "node:crypto";
import githubAppJwt from "universal-github-app-jwt";

const privateKeyPkcs8 = crypto.createPrivateKey(process.env.PRIVATE_KEY).export({
type: "pkcs8",
format: "pem",
}
const privateKeyPkcs8 = crypto
.createPrivateKey(process.env.PRIVATE_KEY)
.export({
type: "pkcs8",
format: "pem",
});

const { token, appId, expiration } = await githubAppJwt({
id: process.env.APP_ID,
Expand Down

0 comments on commit 36409d8

Please sign in to comment.