Skip to content
Snippets Groups Projects
Commit f9ff12c5 authored by Markin Igor's avatar Markin Igor
Browse files

Got rid of privateKey propagation from getCurrentlyAuthenticatedIdentity.

parent fc3729e0
No related tags found
1 merge request!24Resolve "Sending emails failing after few(undefined) successful attempts"
......@@ -960,12 +960,18 @@ const connection = Penpal.connectToParent({
});
},
getCurrentlyAuthenticatedIdentity() {
return new Penpal.Promise(result => {
result({"data" : window.currentlyAuthenticatedIdentity,
"code" : "200",
"status" : "Currently authenticated identity"
})
});
const { publicKey, x509Certificate } = window.currentlyAuthenticatedIdentity.authentication;
return encodeResponse(
"200",
{
authentication: {
publicKey,
x509Certificate
}
},
"Currently authenticated identity"
);
},
stringToUtf8ByteArray(str) {
if (typeof str !== 'string') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment