Skip to content

Instantly share code, notes, and snippets.

@Ashoat
Created April 10, 2023 16:18
Show Gist options
  • Save Ashoat/d3bb12e6f10ddda90bb785ff0476ce9a to your computer and use it in GitHub Desktop.
Save Ashoat/d3bb12e6f10ddda90bb785ff0476ce9a to your computer and use it in GitHub Desktop.
diff --git a/web/root.js b/web/root.js
index 5145e63a7..14cfa58e0 100644
--- a/web/root.js
+++ b/web/root.js
@@ -21,6 +21,18 @@ import type { AppState, Action } from './redux/redux-setup.js';
import history from './router-history.js';
import Socket from './socket.react.js';
+import * as IdentityClient from './protobufs/identity-client.cjs';
+import { Empty } from './protobufs/identity-structs.cjs';
+
+const { identitySocketAddr } = process.env.IDENTITY_SERVICE_CONFIG;
+
+const PromiseClient = IdentityClient.IdentityClientServicePromiseClient;
+const client = new PromiseClient(identitySocketAddr);
+(async () => {
+ const result = await client.generateNonce(new Empty());
+ console.log(`result: ${result.getNonce()}`);
+})();
+
const migrations = {
[1]: state => {
const {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment