Skip to content

Commit

Permalink
[INJIMOB-1292] - Rename Mosip issuer to MosipOtp and ESignet to Mosip
Browse files Browse the repository at this point in the history
Signed-off-by: Swati Goel <[email protected]>
  • Loading branch information
swatigoel committed May 8, 2024
1 parent c75512e commit 03c2537
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion screens/Scan/SendVcScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export const SendVcScreen: React.FC = () => {
<Column
style={Theme.SendVcScreenStyles.shareOptionButtonsContainer}
backgroundColor={Theme.Colors.whiteBackgroundColor}>
{[Issuers.Mosip, Issuers.ESignet].indexOf(
{[Issuers.MosipOtp, Issuers.Mosip].indexOf(
controller.verifiableCredentialData.issuer,
) !== -1 && (
<Button
Expand Down
10 changes: 5 additions & 5 deletions shared/openId4VCI/Utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ export const Protocols = {
};

export const Issuers = {
Mosip: '',
MosipOtp: '',
Sunbird: 'Sunbird',
ESignet: 'ESignet',
Mosip: 'Mosip',
};

/**
Expand All @@ -38,7 +38,7 @@ export const Issuers = {
* NOTE: This might be replaced by a more standards compliant way later.
*/
export function getIdType(issuer: string | undefined): string {
if (issuer === Issuers.Mosip || issuer === Issuers.ESignet) {
if (issuer === Issuers.MosipOtp || issuer === Issuers.Mosip) {
return 'nationalCard';
}
return 'insuranceCard';
Expand Down Expand Up @@ -70,7 +70,7 @@ export const getIDType = (verifiableCredential: VerifiableCredential) => {
return ID_TYPE[verifiableCredential.type[1]];
};

export const ACTIVATION_NEEDED = [Issuers.ESignet, Issuers.Mosip];
export const ACTIVATION_NEEDED = [Issuers.Mosip, Issuers.MosipOtp];

export const isActivationNeeded = (issuer: string) => {
return ACTIVATION_NEEDED.indexOf(issuer) !== -1;
Expand Down Expand Up @@ -222,7 +222,7 @@ export const getCredentialIssuersWellKnownConfig = async (
) => {
let fields: string[] = [];
let response = null;
if (issuer === Issuers.Mosip) {
if (issuer === Issuers.MosipOtp) {
fields = defaultFields;
} else if (wellknown) {
response = await CACHED_API.fetchIssuerWellknownConfig(issuer, wellknown);
Expand Down

0 comments on commit 03c2537

Please sign in to comment.