Page MenuHomePhabricator

[keyserver] Ensure that we're including `calendarQuery` in `siweAccountCreationRequest`
ClosedPublic

Authored by atul on Jan 22 2023, 5:37 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 22, 2:49 AM
Unknown Object (File)
Fri, Nov 22, 2:49 AM
Unknown Object (File)
Fri, Nov 22, 2:49 AM
Unknown Object (File)
Fri, Nov 22, 2:49 AM
Unknown Object (File)
Fri, Nov 22, 2:47 AM
Unknown Object (File)
Nov 8 2024, 1:50 PM
Unknown Object (File)
Oct 22 2024, 3:18 AM
Unknown Object (File)
Oct 22 2024, 3:18 AM
Subscribers
None

Details

Summary

This is needed for successful registration when we call the siwe_auth endpoint from web. I should have included this earlier.

Test Plan

Able to step through account creation and ensure that every step completes as expected.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul published this revision for review.Jan 22 2023, 5:38 PM
atul planned changes to this revision.Jan 22 2023, 5:58 PM
atul requested review of this revision.Jan 22 2023, 6:01 PM
ashoat requested changes to this revision.Jan 23 2023, 9:17 AM
ashoat added inline comments.
keyserver/src/creators/account-creator.js
223 ↗(On Diff #21181)

We don't seem to do anything with this!! Let's get rid of the promises array and actually await it, presumably before the calls below that actually create the user

236 ↗(On Diff #21181)

I think this is a duplicate call, see ENG-2767. Can we just remove it?

This revision now requires changes to proceed.Jan 23 2023, 9:17 AM
keyserver/src/creators/account-creator.js
223 ↗(On Diff #21181)

I'm not sure how I missed that..... going to read through processSIWEAccountCreation and processSuccessfulLogin again to make sure everything is correct.

236 ↗(On Diff #21181)

Can we just remove it?

If none of the subsequent queries that use the Viewer object (eg createPrivateThread(viewer, request.address) depend on the cookie being set correctly. I'll read through and handle ENG-2767 in subsequent diff.

This revision is now accepted and ready to land.Jan 23 2023, 10:31 AM