We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1736f43 commit d0dd153Copy full SHA for d0dd153
src/auth/AuthClient.ts
@@ -391,6 +391,16 @@ export class AuthClient {
391
encryptedItemKeys
392
);
393
394
+ if (this.keys) {
395
+ this.keys.encryptionPublicKey = this.user.keys.encryptionPublicKey;
396
+ this.keys.encryptionSecretKey = this.user.keys.encryptionSecretKey;
397
+ }
398
+
399
+ if (typeof window !== "undefined") {
400
+ localStorage.setItem("encKey", this.user.keys.encryptionSecretKey);
401
+ localStorage.setItem("encPubKey", this.user.keys.encryptionPublicKey);
402
403
404
return {
405
encryptionPublicKey: this.user.keys.encryptionPublicKey,
406
encryptionSecretKey: this.user.keys.encryptionSecretKey,
0 commit comments