From 5a0dba40364b2c62c2ad3f131c489273fe5dbdf6 Mon Sep 17 00:00:00 2001 From: "A.G.J. Cate" Date: Thu, 9 Jan 2025 14:16:16 +0100 Subject: [PATCH] chore: cleanup --- packages/issuer-rest/lib/OID4VCIServer.ts | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/packages/issuer-rest/lib/OID4VCIServer.ts b/packages/issuer-rest/lib/OID4VCIServer.ts index ea2b74a7..ff21e2e0 100644 --- a/packages/issuer-rest/lib/OID4VCIServer.ts +++ b/packages/issuer-rest/lib/OID4VCIServer.ts @@ -86,10 +86,17 @@ export interface IGetIssueStatusEndpointOpts extends ISingleEndpointOpts { } export interface IAuthorizationChallengeEndpointOpts extends ISingleEndpointOpts { - // TODO docs - // optional state so when rest is not used one could sync the state + /** + * Callback used for creating the authorization request uri used for the RP. + * Added an optional state parameter so that when direct calls are used, + * one could set the state value of the RP session to match the state value of the VCI session. + */ createAuthRequestUriCallback: (presentationDefinitionId: string, state?: string) => Promise - verifyAuthResponseCallback: (correlationId: string) => Promise // TODO authorizationResponsePayload: any, -> AuthorizationResponse + /** + * Callback used for verifying the status of the authorization response. + * This is checked by the issuer before issuing an authorization code. + */ + verifyAuthResponseCallback: (correlationId: string) => Promise } export interface IOID4VCIServerOpts extends HasEndpointOpts {