fix: more JWT fixes (#662)

This commit is contained in:
Brace Sproul 2025-08-04 15:27:11 -07:00 • committed by GitHub
parent 71e6094421
commit d2c9e48c43
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 2 deletions

View file

@ -41,6 +41,7 @@
"@open-swe/shared": "*",
"diff": "^8.0.1",
"hono": "^4.8.3",
"jsonwebtoken": "^9.0.2",
"langchain": "^0.3.26",
"langsmith": "^0.3.29",
"uuid": "^11.0.5",
@ -53,6 +54,7 @@
"@langchain/langgraph-cli": "^0.0.47",
"@tsconfig/recommended": "^1.0.8",
"@types/jest": "^29.5.0",
"@types/jsonwebtoken": "^9.0.10",
"@types/node": "^22.13.5",
"dotenv": "^16.4.7",
"eslint": "^9.19.0",

View file

@ -1,4 +1,4 @@
import * as jwt from "jsonwebtoken";
import { sign } from "jsonwebtoken";
/**
* Generates a JWT for GitHub App authentication
@ -12,5 +12,5 @@ export function generateJWT(appId: string, privateKey: string): string {
iss: appId,
};
return jwt.sign(payload, privateKey, { algorithm: "RS256" });
return sign(payload, privateKey, { algorithm: "RS256" });
}

View file

@ -4114,6 +4114,7 @@ __metadata:
"@open-swe/shared": "*"
"@tsconfig/recommended": ^1.0.8
"@types/jest": ^29.5.0
"@types/jsonwebtoken": ^9.0.10
"@types/node": ^22.13.5
diff: ^8.0.1
dotenv: ^16.4.7
@ -4124,6 +4125,7 @@ __metadata:
eslint-plugin-prettier: ^4.2.1
hono: ^4.8.3
jest: ^29.7.0
jsonwebtoken: ^9.0.2
langchain: ^0.3.26
langsmith: ^0.3.29
prettier: ^3.5.2