@zhin.js/adapter-github 0.1.42 → 0.1.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/gh-client.js +1 -1
- package/package.json +1 -1
- package/src/gh-client.ts +1 -1
package/lib/gh-client.js
CHANGED
|
@@ -261,7 +261,7 @@ export class GhClient {
|
|
|
261
261
|
const payload = Buffer.from(JSON.stringify({
|
|
262
262
|
iat: now - 60,
|
|
263
263
|
exp: now + 600,
|
|
264
|
-
iss:
|
|
264
|
+
iss: Number(appId),
|
|
265
265
|
})).toString('base64url');
|
|
266
266
|
const signature = crypto
|
|
267
267
|
.sign('sha256', Buffer.from(`${header}.${payload}`), privateKey)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zhin.js/adapter-github",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.43",
|
|
4
4
|
"description": "Zhin.js adapter for GitHub (gh CLI) — treat issues/PRs as chat channels, full repo management, webhook notifications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/index.js",
|
package/src/gh-client.ts
CHANGED
|
@@ -291,7 +291,7 @@ export class GhClient {
|
|
|
291
291
|
const payload = Buffer.from(JSON.stringify({
|
|
292
292
|
iat: now - 60,
|
|
293
293
|
exp: now + 600,
|
|
294
|
-
iss:
|
|
294
|
+
iss: Number(appId),
|
|
295
295
|
})).toString('base64url');
|
|
296
296
|
const signature = crypto
|
|
297
297
|
.sign('sha256', Buffer.from(`${header}.${payload}`), privateKey)
|