[INJIMOB-2265] show client_id in VP sharing screen if client_name is not available in client_metadata as per the spec

Signed-off-by: PuBHARGAVI <46226958+PuBHARGAVI@users.noreply.github.com>
This commit is contained in:
PuBHARGAVI
2024-12-02 00:13:41 +05:30
parent f9bdfab09f
commit 57ebe5c66b

View File

@@ -106,7 +106,10 @@ export function selectIsFaceVerifiedInVPSharing(state: State) {
}
export function selectVerifierNameInVPSharing(state: State) {
return state.context.authenticationResponse['client_metadata']?.name;
return (
state.context.authenticationResponse['client_metadata']?.['client_name'] ??
state.context.authenticationResponse['client_id']
);
}
export function selectRequestedClaimsByVerifier(state: State) {