Remove keyId from importPKCS8 options

- Remove keyId parameter from importPKCS8 call
- Keep kid in protected header for JWT
- Fix 'Invalid or unsupported alg value' error

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
dwindown
2025-12-23 11:11:57 +07:00
parent 1f998c2549
commit 0ad50f4b6b

View File

@@ -38,7 +38,6 @@ async function getGoogleAccessToken(serviceAccount: GoogleServiceAccount): Promi
// Convert private key string to CryptoKey
const privateKey = await importPKCS8(serviceAccount.private_key, {
algorithm: 'RS256',
keyId: serviceAccount.private_key_id,
});
// Create and sign JWT