Hi, I’m trying to test my VC issuer using @dfinity/verifiable-credentials
on frontend, however the SDK does not seem to sends request on localhost, instead it’s sending the request to the ICP mainnet.
This is my how my requestVerifiablePresentation
is constructed:
requestVerifiablePresentation({
onSuccess: async (verifiablePresentation: VerifiablePresentationResponse) => {
console.log({ verifiablePresentation });
},
onError() {
console.log("An error occurred");
},
issuerData: {
origin: "http://bkyz2-fmaaa-aaaaa-qaaaq-cai.localhost:4943",
canisterId: Principal.fromText("bkyz2-fmaaa-aaaaa-qaaaq-cai"),
},
credentialData: {
credentialSpec: {
credentialType: `Verified ${name} completion`,
arguments: {
issuedOn,
issuerName,
linkToWork,
recipientName,
name,
},
},
credentialSubject: Principal.fromText(principal),
},
identityProvider: new URL(IDENTITY_PROVIDER),
});