diff --git a/packages/oid4vci/src/credential-offer/credential-offer.ts b/packages/oid4vci/src/credential-offer/credential-offer.ts index 65058f4..685755a 100644 --- a/packages/oid4vci/src/credential-offer/credential-offer.ts +++ b/packages/oid4vci/src/credential-offer/credential-offer.ts @@ -91,6 +91,13 @@ export async function resolveCredentialOffer( return credentialOfferParseResult.output } +export interface CreateCredentialOfferGrantsOptions { + [preAuthorizedCodeGrantIdentifier]?: Partial + [authorizationCodeGrantIdentifier]?: CredenialOfferAuthorizationCodeGrant + + [key: string]: unknown +} + export interface CreateCredentialOfferOptions { issuerMetadata: IssuerMetadataResult @@ -102,12 +109,7 @@ export interface CreateCredentialOfferOptions { /** * Grants to include in the credential offer */ - grants: { - [preAuthorizedCodeGrantIdentifier]?: Partial - [authorizationCodeGrantIdentifier]?: CredenialOfferAuthorizationCodeGrant - - [key: string]: unknown - } + grants: CreateCredentialOfferGrantsOptions /** * Additional payload to include in the body of the credential offer. Will be applied