File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,8 +43,10 @@ import { generateMissingPKCEOpts } from './functions';
4343
4444const debug = Debug ( 'sphereon:oid4vci' ) ;
4545
46+ export type OpenID4VCIClientState = OpenID4VCIClientStateV1_0_11 | OpenID4VCIClientStateV1_0_13 ;
47+
4648export 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 ) ;
You can’t perform that action at this time.
0 commit comments