Skip to content

Commit d215b42

Browse files
committed
chore: fix exports
1 parent ef1cdce commit d215b42

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

packages/client/lib/OpenID4VCIClient.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,10 @@ import { generateMissingPKCEOpts } from './functions';
4343

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

46+
export type OpenID4VCIClientState = OpenID4VCIClientStateV1_0_11 | OpenID4VCIClientStateV1_0_13;
47+
4648
export class OpenID4VCIClient {
47-
private readonly _state: OpenID4VCIClientStateV1_0_11 | OpenID4VCIClientStateV1_0_13;
49+
private readonly _state: OpenID4VCIClientState;
4850

4951
private constructor({
5052
credentialOffer,
@@ -95,7 +97,7 @@ export class OpenID4VCIClient {
9597
: (endpointMetadata as EndpointMetadataResultV1_0_13 | undefined),
9698
accessTokenResponse,
9799
authorizationURL,
98-
} as OpenID4VCIClientStateV1_0_11 | OpenID4VCIClientStateV1_0_13;
100+
} as OpenID4VCIClientState;
99101
// Running syncAuthorizationRequestOpts later as it is using the state
100102
if (!this._state.authorizationRequestOpts) {
101103
this._state.authorizationRequestOpts = this.syncAuthorizationRequestOpts(authorizationRequest);

0 commit comments

Comments
 (0)