mirror of
https://github.com/mosip/inji-wallet.git
synced 2026-01-09 13:38:01 -05:00
[INJIMOB-2260] Translations and help screen redirection fix (#1674)
* [INJIMOB-2260] revert bypassing VC verification fro mock mso_mdoc format VC Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com> * [INJIMOB-2260] fix backup helpscreen redirect to backup faq questions Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com> * [INJIMOB-2260] add missing translations for downloadingVcSuccess Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com> * [INJIMOB-2260]: Bypass mock verification in restore flow. Signed-off-by: BalachandarG <balachandar.g@thoughtworks.com> --------- Signed-off-by: KiruthikaJeyashankar <kiruthikavjshankar@gmail.com> Signed-off-by: BalachandarG <balachandar.g@thoughtworks.com> Co-authored-by: BalachandarG <balachandar.g@thoughtworks.com>
This commit is contained in:
committed by
GitHub
parent
1706e88e22
commit
e96ab1e5e7
@@ -27,6 +27,7 @@ import {
|
||||
import {TelemetryConstants} from '../../shared/telemetry/TelemetryConstants';
|
||||
import {VciClient} from '../../shared/vciClient/VciClient';
|
||||
import {isMockVC} from '../../shared/Utils';
|
||||
import {VCFormat} from '../../shared/VCFormat';
|
||||
|
||||
export const IssuersService = () => {
|
||||
return {
|
||||
@@ -125,7 +126,10 @@ export const IssuersService = () => {
|
||||
|
||||
verifyCredential: async (context: any) => {
|
||||
//TODO: Remove bypassing verification of mock VCs once mock VCs are verifiable
|
||||
if (!isMockVC(context.selectedIssuerId)) {
|
||||
if (
|
||||
context.selectedCredentialType.format === VCFormat.mso_mdoc ||
|
||||
!isMockVC(context.selectedIssuerId)
|
||||
) {
|
||||
const verificationResult = await verifyCredential(
|
||||
context.verifiableCredential?.credential,
|
||||
context.selectedCredentialType.format,
|
||||
|
||||
Reference in New Issue
Block a user