mirror of
https://github.com/Sea-Haven-Industries/open-swe.git
synced 2026-09-30 06:53:14 +00:00
fix: another JWT fix attempt (#663)
This commit is contained in:
parent
d2c9e48c43
commit
1eb315eed9
1 changed files with 2 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { sign } from "jsonwebtoken";
|
||||
import jsonwebtoken from "jsonwebtoken";
|
||||
|
||||
/**
|
||||
* Generates a JWT for GitHub App authentication
|
||||
|
|
@ -12,5 +12,5 @@ export function generateJWT(appId: string, privateKey: string): string {
|
|||
iss: appId,
|
||||
};
|
||||
|
||||
return sign(payload, privateKey, { algorithm: "RS256" });
|
||||
return jsonwebtoken.sign(payload, privateKey, { algorithm: "RS256" });
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue