diff --git a/packages/siop-oid4vp/lib/helpers/extract-jwks.ts b/packages/siop-oid4vp/lib/helpers/ExtractJwks.ts similarity index 95% rename from packages/siop-oid4vp/lib/helpers/extract-jwks.ts rename to packages/siop-oid4vp/lib/helpers/ExtractJwks.ts index f48a6a00..3ad5a2c0 100644 --- a/packages/siop-oid4vp/lib/helpers/extract-jwks.ts +++ b/packages/siop-oid4vp/lib/helpers/ExtractJwks.ts @@ -28,9 +28,9 @@ export async function fetchJwks(jwksUri: string): Promise { * If a jwks field is provided, the JWKS will be extracted from the field. * If a jwks_uri is provided, the JWKS will be fetched from the URI. * - * @param input - The metadata input to be validated and parsed. * @returns A promise that resolves to the extracted JWKS or undefined. * @throws {JoseJwksExtractionError} If the metadata format is invalid or no decryption key is found. + * @param metadata */ export const extractJwksFromJwksMetadata = async (metadata: JwksMetadataParams) => { let jwks: Jwks | undefined = metadata.jwks?.keys[0] ? metadata.jwks : undefined diff --git a/packages/siop-oid4vp/lib/helpers/index.ts b/packages/siop-oid4vp/lib/helpers/index.ts index 8ee31a95..396b5bf8 100644 --- a/packages/siop-oid4vp/lib/helpers/index.ts +++ b/packages/siop-oid4vp/lib/helpers/index.ts @@ -4,4 +4,5 @@ export * from './HttpUtils' export * from './ObjectUtils' export * from './Revocation' export * from './State' +export * from './ExtractJwks' export * from './LanguageTagUtils' diff --git a/packages/siop-oid4vp/lib/op/OP.ts b/packages/siop-oid4vp/lib/op/OP.ts index 12888837..985a2665 100644 --- a/packages/siop-oid4vp/lib/op/OP.ts +++ b/packages/siop-oid4vp/lib/op/OP.ts @@ -13,8 +13,8 @@ import { PresentationExchangeResponseOpts, } from '../authorization-response' import { encodeJsonAsURI, post } from '../helpers' +import { extractJwksFromJwksMetadata, JwksMetadataParams } from '../helpers/ExtractJwks' import { authorizationRequestVersionDiscovery } from '../helpers/SIOPSpecVersion' -import { extractJwksFromJwksMetadata, JwksMetadataParams } from '../helpers/extract-jwks' import { AuthorizationEvent, AuthorizationEvents, diff --git a/packages/siop-oid4vp/lib/types/SIOP.types.ts b/packages/siop-oid4vp/lib/types/SIOP.types.ts index b44484cf..35a69ae8 100644 --- a/packages/siop-oid4vp/lib/types/SIOP.types.ts +++ b/packages/siop-oid4vp/lib/types/SIOP.types.ts @@ -21,7 +21,7 @@ import { PresentationVerificationCallback, VerifyAuthorizationResponseOpts, } from '../authorization-response' -import { JwksMetadataParams } from '../helpers/extract-jwks' +import { JwksMetadataParams } from '../helpers/ExtractJwks' import { RequestObject, RequestObjectOpts } from '../request-object' import { IRPSessionManager } from '../rp'