fix: another JWT fix attempt (#663)

This commit is contained in:
Brace Sproul 2025-08-04 16:28:15 -07:00 • committed by GitHub
parent d2c9e48c43
commit 1eb315eed9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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