Skip to content

Instantly share code, notes, and snippets.

@Ashoat
Created March 17, 2023 01:26
Embed
What would you like to do?
diff --git a/web/account/log-in-form.react.js b/web/account/log-in-form.react.js
index 2391e23b2..01c8ec3ce 100644
--- a/web/account/log-in-form.react.js
+++ b/web/account/log-in-form.react.js
@@ -47,6 +47,8 @@ function LoginForm(): React.Node {
const identityAccount = new olm.Account();
identityAccount.create();
+ identityAccount.generate_prekey();
+ console.log(identityAccount.prekey());
const { ed25519: identityED25519, curve25519: identityCurve25519 } =
JSON.parse(identityAccount.identity_keys());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment