Skip to content

Commit 33ea7e8

Browse files
committed
rename sponsorKey to truveraApiSponsorKey in revocation context
1 parent c311846 commit 33ea7e8

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

integration-tests/delegatable-revocation.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ describe('Delegatable Revocation', () => {
6161
ctx = {
6262
wallet: walletClient.wallet,
6363
issuerDID: walletClient.did,
64-
sponsorKey: SPONSOR_KEY as string,
64+
truveraApiSponsorKey: SPONSOR_KEY as string,
6565
apiUrl: API_URL as string,
6666
};
6767
});

packages/core/src/delegation/delegation-revocation.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export interface StatusList2021Entry {
5252
export interface RevocationContext {
5353
wallet: IWallet;
5454
issuerDID: string; // the did:key that owns the registry / signs the JWT
55-
sponsorKey: string;
55+
truveraApiSponsorKey: string;
5656
apiUrl: string;
5757
}
5858

@@ -94,7 +94,7 @@ async function postRevocation(
9494
registryId: string,
9595
body: Record<string, any>,
9696
): Promise<any> {
97-
assert(!!ctx.sponsorKey, 'sponsorKey is required');
97+
assert(!!ctx.truveraApiSponsorKey, 'truveraApiSponsorKey is required');
9898
const jwt = await signRevocationJWT(ctx, {registryId, ...body});
9999

100100
try {
@@ -103,7 +103,7 @@ async function postRevocation(
103103
body,
104104
{
105105
headers: {
106-
'X-MOBILE-SPONSOR-KEY': ctx.sponsorKey,
106+
'X-MOBILE-SPONSOR-KEY': ctx.truveraApiSponsorKey,
107107
Authorization: `Bearer ${jwt}`,
108108
'Content-Type': 'application/json',
109109
},

0 commit comments

Comments
 (0)