Skip to content

Commit

Permalink
bugFix: Solved frozen issue when credential type is String #1768
Browse files Browse the repository at this point in the history
  • Loading branch information
bibash28 committed Aug 9, 2023
1 parent fb96ccb commit e347be0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -569,10 +569,14 @@ class QRCodeScanCubit extends Cubit<QRCodeScanState> {
);
}
oidc4vc.resetNonceAndAccessToken();
emit(state.copyWith(qrScanStatus: QrScanStatus.goBack));
goBack();
}
}

void goBack() {
emit(state.copyWith(qrScanStatus: QrScanStatus.goBack));
}

Future<void> launchSiopV2WithRequestUriFlow(Uri? uri) async {
final Map<String, dynamic> response =
decodePayload(jwtDecode: jwtDecode, token: encodedData as String);
Expand Down
1 change: 1 addition & 0 deletions lib/oidc4vc/initiate_oidv4vc_credential_issuance.dart
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ Future<void> initiateOIDC4VCCredentialIssuance({
isLastCall: true,
);
oidc4vc.resetNonceAndAccessToken();
qrCodeScanCubit.goBack();
}
}

Expand Down

0 comments on commit e347be0

Please sign in to comment.