INJIMOB-2099 : redirection to browser from INJI application (#1638)

* [INJIMOB-2099]: add logic to redirect from inji application to browser after qr login

Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>

* [INJIMOB-2099]- handle screen switch in case of any error scenario

Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>

---------

Signed-off-by: Alka Prasad <prasadalka1998@gmail.com>
This commit is contained in:
Alka Prasad
2024-10-07 11:41:54 +05:30
committed by GitHub
parent 0abe02a46c
commit 459e47df3e
17 changed files with 243 additions and 121 deletions

View File

@@ -4,7 +4,6 @@ import {isHardwareKeystoreExists} from '../../shared/cryptoutil/cryptoUtil';
import {BiometricCancellationError} from '../../shared/error/BiometricCancellationError';
import {VerificationErrorType} from '../../shared/vcjs/verifyCredential';
export const IssuersGuards = () => {
return {
isVerificationPendingBecauseOfNetworkIssue: (_context, event) =>
@@ -49,7 +48,7 @@ export const IssuersGuards = () => {
event.data instanceof BiometricCancellationError,
isGenericError: (_: any, event: any) => {
const errorMessage = event.data.message;
return errorMessage === ErrorMessage.GENERIC
return errorMessage === ErrorMessage.GENERIC;
},
};
};