Skip to content

Commit 0a7cd1b

Browse files
committed
Delete unused interface method OpenidCredentialReceiving.getIssuerState
1 parent b49897f commit 0a7cd1b

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

src/services/OpenidForCredentialIssuanceService.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,18 +46,6 @@ export class OpenidForCredentialIssuanceService implements OpenidCredentialRecei
4646
) { }
4747

4848

49-
async getIssuerState(userId: UserId): Promise<{ issuer_state?: string, error?: Error; }> {
50-
const state = this.states.get(userId.id);
51-
if (!state) {
52-
return { issuer_state: null, error: new Error("No state found") };
53-
}
54-
if (!state.issuer_state) {
55-
return { issuer_state: null, error: new Error("No issuer_state found in state") };
56-
}
57-
58-
return { issuer_state: state.issuer_state, error: null };
59-
}
60-
6149
async generateAuthorizationRequestURL(userId: UserId, credentialOfferURL?: string, legalPersonDID?: string): Promise<{ redirect_to?: string, preauth?: boolean, ask_for_pin?: boolean }> {
6250
console.log("generateAuthorizationRequestURL userId = ", userId);
6351
console.log("LP = ", legalPersonDID);

src/services/interfaces.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ export interface OpenidCredentialReceiving {
1313

1414
handleAuthorizationResponse(userId: UserId, authorizationResponseURL: string): Promise<Result<void, IssuanceErr | WalletKeystoreRequest>>;
1515
requestCredentialsWithPreAuthorizedGrant(userId: UserId, user_pin: string): Promise<{error?: string}>;
16-
17-
getIssuerState(userId: UserId): Promise<{ issuer_state?: string, error?: Error }>
1816
}
1917

2018
export enum IssuanceErr {

0 commit comments

Comments
 (0)