Currently you cannot login with smart card on windows
Need to look into the certificate selection
interface X509Certificate {
issuerName: string;
data: string;
}
app.on("select-client-certificate", (
event: Event,
webContents: Electron.WebContents,
host: string,
certificates: X509Certificate[],
callback: (certificate: X509Certificate) => void) => {
console.log("Show certificates", certificates);
if (certificates.length <= 1) {
// Default behavior is appropriate
return false;
}
event.preventDefault();
let index = -1;
if (index >= 0) {
callback(certificates[index]);
}
return true;
});
Currently you cannot login with smart card on windows
Need to look into the certificate selection