Created
April 1, 2024 21:56
-
-
Save vdhanan/0a0498c9e672d44e0e51331c78510f80 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/keyserver/src/keyserver.js b/keyserver/src/keyserver.js | |
index bb64717ecf..b26eac4570 100644 | |
--- a/keyserver/src/keyserver.js | |
+++ b/keyserver/src/keyserver.js | |
@@ -52,10 +52,19 @@ import { | |
getWebAppURLFacts, | |
getWebAppCorsConfig, | |
} from './utils/urls.js'; | |
+import { getRustAPI } from 'rust-node-addon'; | |
const shouldDisplayQRCodeInTerminal = false; | |
void (async () => { | |
+ const rustAPI = await getRustAPI(); | |
+ const farcasterUsers = await rustAPI.getFarcasterUsers([ | |
+ '111', | |
+ '1234', | |
+ '111111111', | |
+ ]); | |
+ console.log('got the following users:', farcasterUsers); | |
+ | |
const [webAppCorsConfig] = await Promise.all([ | |
getWebAppCorsConfig(), | |
olm.init(), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(FID 111111111 was not associated with a comm user, so we expect to get nothing back for it)