For new created accounts we can make a call to the "eth.link" gateway to create SSL certificate for each subdomain.
An example how it should be done;
fetch("https://eth.link/names/mdt.almonit.eth.link", {
method: "PUT",
mode: "cors",
headers: {
Origin: "*",
"Content-Type": "text/plain",
"Access-Control-Request-Method": "PUT",
},
})
.then((req) => {
console.log(req);
})
.catch((e) => {
console.log(e);
});
p.s. = Instead of having this centralized call in dlog library, I am in favor of having an optional service outside of our architecture. We can watch our contract event for fresh accounts and trigger this bit.
For new created accounts we can make a call to the "eth.link" gateway to create SSL certificate for each subdomain.
An example how it should be done;
p.s. = Instead of having this centralized call in dlog library, I am in favor of having an optional service outside of our architecture. We can watch our contract event for fresh accounts and trigger this bit.