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:
@@ -38,7 +38,6 @@ async function getGoogleAccessToken(serviceAccount: GoogleServiceAccount): Promi
|
|||||||
// Convert private key string to CryptoKey
|
// Convert private key string to CryptoKey
|
||||||
const privateKey = await importPKCS8(serviceAccount.private_key, {
|
const privateKey = await importPKCS8(serviceAccount.private_key, {
|
||||||
algorithm: 'RS256',
|
algorithm: 'RS256',
|
||||||
keyId: serviceAccount.private_key_id,
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// Create and sign JWT
|
// Create and sign JWT
|
||||||
|
|||||||
Reference in New Issue
Block a user