Skip to content

Commit

Permalink
Merge pull request #13 from gunet/minor-adjustments
Browse files Browse the repository at this point in the history
removed redundant prints + use prefix of issuer to trigger the eid authentication
  • Loading branch information
kkmanos authored Nov 13, 2024
2 parents ecc98a9 + 4ff5600 commit 0f358f4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/context/ContainerContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ export const ContainerContextProvider = ({ children }) => {
},

async function authorizationRequestModifier(credentialIssuerIdentifier: string, url: string, request_uri?: string, client_id?: string) {
if (credentialIssuerIdentifier !== process.env.REACT_APP_PID_CREDENTIAL_ISSUER_IDENTIFIER) {
if (!credentialIssuerIdentifier.startsWith(process.env.REACT_APP_PID_CREDENTIAL_ISSUER_IDENTIFIER)) {
return { url };
}
const isMobile = window.innerWidth <= 480;
Expand Down
1 change: 0 additions & 1 deletion src/lib/utils/mdocPIDParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ export const deviceResponseParser: ICredentialParser = {

export const mdocPIDParser: ICredentialParser = {
parse: async function (rawCredential: object | string, presentationDefinitionFilter?: PresentationDefinitionType): Promise<{ credentialFriendlyName: string; credentialImage: { credentialImageURL: string; }; beautifiedForm: any; } | { error: string }> {
console.log("Raw cred = ", rawCredential)
if (typeof rawCredential != 'string') {
return { error: "Not for this parser" };
}
Expand Down

0 comments on commit 0f358f4

Please sign in to comment.