mirror of
https://github.com/Sea-Haven-Industries/open-swe.git
synced 2026-09-30 06:53:14 +00:00
fix: more JWT fixes (#662)
This commit is contained in:
parent
71e6094421
commit
d2c9e48c43
3 changed files with 6 additions and 2 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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" });
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue