Skip to content

Commit 9d50361

Browse files
chore: rename VcTFetcher to VCTFetcher (#367)
Signed-off-by: Berend Sliedrecht <berend@animo.id>
1 parent f734cf9 commit 9d50361

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/sd-jwt-vc/src/sd-jwt-vc-config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { SDJWTConfig, Verifier } from '@sd-jwt/types';
2-
import type { VcTFetcher } from './sd-jwt-vc-vct';
2+
import type { VCTFetcher } from './sd-jwt-vc-vct';
33

44
export type StatusListFetcher = (uri: string) => Promise<string>;
55
export type StatusValidator = (status: number) => Promise<void>;
@@ -13,7 +13,7 @@ export type SDJWTVCConfig = SDJWTConfig & {
1313
// validte the status and decide if the status is valid or not. If not provided, the code will continue if it is 0, otherwise it will throw an error.
1414
statusValidator?: StatusValidator;
1515
// a function that fetches the type metadata format from the uri. If not provided, the library will assume that the response is a TypeMetadataFormat. Caching has to be implemented in this function. If the integrity value is passed, it to be validated according to https://www.w3.org/TR/SRI/
16-
vctFetcher?: VcTFetcher;
16+
vctFetcher?: VCTFetcher;
1717
// a function that verifies the status of the JWT. If not provided, the library will assume that the status is valid if it is 0.
1818
statusVerifier?: Verifier;
1919
// if set to true, it will load the metadata format based on the vct value. If not provided, it will default to false.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { TypeMetadataFormat } from './sd-jwt-vc-type-metadata-format';
22

3-
export type VcTFetcher = (
3+
export type VCTFetcher = (
44
uri: string,
55
integrity?: string,
66
) => Promise<TypeMetadataFormat | undefined>;

0 commit comments

Comments
 (0)