Skip to content

Commit

Permalink
chore: fix exports
Browse files Browse the repository at this point in the history
  • Loading branch information
nklomp committed Jun 14, 2024
1 parent ef1cdce commit d215b42
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/client/lib/OpenID4VCIClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,10 @@ import { generateMissingPKCEOpts } from './functions';

const debug = Debug('sphereon:oid4vci');

export type OpenID4VCIClientState = OpenID4VCIClientStateV1_0_11 | OpenID4VCIClientStateV1_0_13;

export class OpenID4VCIClient {
private readonly _state: OpenID4VCIClientStateV1_0_11 | OpenID4VCIClientStateV1_0_13;
private readonly _state: OpenID4VCIClientState;

private constructor({
credentialOffer,
Expand Down Expand Up @@ -95,7 +97,7 @@ export class OpenID4VCIClient {
: (endpointMetadata as EndpointMetadataResultV1_0_13 | undefined),
accessTokenResponse,
authorizationURL,
} as OpenID4VCIClientStateV1_0_11 | OpenID4VCIClientStateV1_0_13;
} as OpenID4VCIClientState;
// Running syncAuthorizationRequestOpts later as it is using the state
if (!this._state.authorizationRequestOpts) {
this._state.authorizationRequestOpts = this.syncAuthorizationRequestOpts(authorizationRequest);
Expand Down

0 comments on commit d215b42

Please sign in to comment.