Skip to content
Snippets Groups Projects

feat: ocm did svdx generation for sender OP#250

Merged Alexey Lunin requested to merge feat/250-hin-ocm into main
All threads resolved!
Files
6
@@ -19,12 +19,6 @@ export class CatalogClient {
{
email: email,
},
{
auth: {
username: this.catalogConfig.catalogBasicUser,
password: this.catalogConfig.catalogBasicPass,
},
},
);
return response.data.did;
} catch (e) {
@@ -41,21 +35,12 @@ export class CatalogClient {
createAccount = async (email: string, didSvdx: string): Promise<void> => {
this.logger.debug(`createAccount`, email);
try {
await axios.post(
`${this.catalogConfig.catalogUrl}/v1/accounts`,
{
email: email,
did: didSvdx,
},
{
auth: {
username: this.catalogConfig.catalogBasicUser,
password: this.catalogConfig.catalogBasicPass,
},
},
);
await axios.post(`${this.catalogConfig.catalogUrl}/v1/accounts`, {
email: email,
did: didSvdx,
});
} catch (e) {
this.logger.debug("storeMapping failed", e);
this.logger.debug("createAccount failed", e);
throw e;
}
};
Loading