Skip to content
This repository was archived by the owner on Sep 30, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
fail-fast: true
matrix:
version:
- 18
- 20
- 22
- 24
name: test and build package (node ${{ matrix.version }})
runs-on: ubuntu-latest
steps:
Expand Down
46 changes: 33 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"devDependencies": {
"@bufbuild/buf": "^1.18.0-1",
"@tsconfig/node-lts": "^22.0.0",
"@types/node": "22.20.4",
"@types/node-rsa": "1.1.4",
"ava": "6.4.1",
"grpc-tools": "1.13.1",
Expand All @@ -47,7 +48,7 @@
},
"dependencies": {
"axios": "1.20.0",
"jose": "5.10.0",
"jose": "6.2.12",
"long": "5.3.2",
"nice-grpc": "2.1.17",
"node-rsa": "2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/credentials/application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export class Application {
*/
public async getSignedJwt(audience: string): Promise<string> {
const rsa = new NodeRSA(this.key);
const key = await importPKCS8(rsa.exportKey('pkcs8-private-pem'), 'RSA256');
const key = await importPKCS8(rsa.exportKey('pkcs8-private-pem'), 'RS256');

return await new SignJWT({})
.setProtectedHeader({ kid: this.keyId, alg: 'RS256' })
Expand Down
2 changes: 1 addition & 1 deletion src/credentials/service-account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export class ServiceAccount {

private async getSignedJwt(audience: string): Promise<string> {
const rsa = new NodeRSA(this.key);
const key = await importPKCS8(rsa.exportKey('pkcs8-private-pem'), 'RSA256');
const key = await importPKCS8(rsa.exportKey('pkcs8-private-pem'), 'RS256');

return await new SignJWT({})
.setProtectedHeader({ kid: this.keyId, alg: 'RS256' })
Expand Down
Loading