Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3513776
D6946.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1022 B
Referenced Files
None
Subscribers
None
D6946.diff
View Options
diff --git a/keyserver/src/responders/user-responders.js b/keyserver/src/responders/user-responders.js
--- a/keyserver/src/responders/user-responders.js
+++ b/keyserver/src/responders/user-responders.js
@@ -565,7 +565,26 @@
);
}
- // 9. Complete login with call to `processSuccessfulLogin(...)`.
+ // 9. Try to double-write SIWE account info to the Identity service
+ const userIDCopy = userID;
+ if (identityKeys && signedIdentityKeysBlob) {
+ const identityKeysCopy = identityKeys;
+ handleAsyncPromise(
+ (async () => {
+ const rustAPI = await getRustAPI();
+ rustAPI.loginUserWallet(
+ userIDCopy,
+ identityKeysCopy.primaryIdentityPublicKeys.ed25519,
+ siweMessage.toMessage(),
+ signature,
+ signedIdentityKeysBlob,
+ JSON.stringify(socialProof),
+ );
+ })(),
+ );
+ }
+
+ // 10. Complete login with call to `processSuccessfulLogin(...)`.
return await processSuccessfulLogin({
viewer,
input,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 23, 2:02 AM (19 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2693155
Default Alt Text
D6946.diff (1022 B)
Attached To
Mode
D6946: [keyserver] double-write to identity service from siweAuthResponder callpoint
Attached
Detach File
Event Timeline
Log In to Comment