Skip to content

Commit

Permalink
refactor: Fix prompt showing when deeplink is used
Browse files Browse the repository at this point in the history
  • Loading branch information
bibash28 committed Sep 22, 2023
1 parent f5d9cf4 commit 174af3b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/splash/bloclisteners/blocklisteners.dart
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,13 @@ final qrCodeBlocListener = BlocListener<QRCodeScanCubit, QRCodeScanState>(
client: DioClient('', Dio()),
);

final bool isOpenIDUrl = state.uri.toString().startsWith('openid');

if (showPrompt) {
if (isOpenIDUrl) {
final bool isOpenIDUrl = isOIDC4VCIUrl(state.uri!);
final bool isFromDeeplink = state.uri
.toString()
.startsWith(Parameters.authorizeEndPoint) ||
state.uri.toString().startsWith(Parameters.oidc4vcUniversalLink);
if (isOpenIDUrl || isFromDeeplink) {
/// OIDC4VCI Case
if (currentOIIDC4VCTypeForIssuance != null) {
Expand Down

0 comments on commit 174af3b

Please sign in to comment.