Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33297578
D6946.1768760677.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
883 B
Referenced Files
None
Subscribers
None
D6946.1768760677.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,22 @@
);
}
- // 9. Complete login with call to `processSuccessfulLogin(...)`.
+ // 9. Try to double-write SIWE account info to the Identity service
+ const rustAPI = await getRustAPI();
+ if (identityKeys && signedIdentityKeysBlob) {
+ handleAsyncPromise(
+ rustAPI.loginUserWallet(
+ userID,
+ identityKeys.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
Sun, Jan 18, 6:24 PM (8 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5952609
Default Alt Text
D6946.1768760677.diff (883 B)
Attached To
Mode
D6946: [keyserver] double-write to identity service from siweAuthResponder callpoint
Attached
Detach File
Event Timeline
Log In to Comment