Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3499523
D6339.id21181.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D6339.id21181.diff
View Options
diff --git a/keyserver/src/creators/account-creator.js b/keyserver/src/creators/account-creator.js
--- a/keyserver/src/creators/account-creator.js
+++ b/keyserver/src/creators/account-creator.js
@@ -205,7 +205,7 @@
export type ProcessSIWEAccountCreationRequest = {
+address: string,
- +calendarQuery?: ?CalendarQuery,
+ +calendarQuery: CalendarQuery,
+deviceTokenUpdateRequest?: ?DeviceTokenUpdateRequest,
+platformDetails: PlatformDetails,
+primaryIdentityPublicKey: ?string,
@@ -220,9 +220,7 @@
const promises = [];
const { calendarQuery } = request;
- if (calendarQuery) {
- promises.push(verifyCalendarQueryThreadIDs(calendarQuery));
- }
+ promises.push(verifyCalendarQueryThreadIDs(calendarQuery));
const time = Date.now();
const deviceToken = request.deviceTokenUpdateRequest
@@ -246,9 +244,7 @@
]);
viewer.setNewCookie(userViewerData);
- if (calendarQuery) {
- await setNewSession(viewer, calendarQuery, 0);
- }
+ await setNewSession(viewer, calendarQuery, 0);
await Promise.all([
updateThread(
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
@@ -409,10 +409,11 @@
if (!userID) {
const siweAccountCreationRequest = {
address: siweMessage.address,
- deviceTokenUpdateRequest: deviceTokenUpdateRequest,
+ calendarQuery,
+ deviceTokenUpdateRequest,
platformDetails,
- primaryIdentityPublicKey: primaryIdentityPublicKey,
- socialProof: socialProof,
+ primaryIdentityPublicKey,
+ socialProof,
};
userID = await processSIWEAccountCreation(
viewer,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 20, 11:32 PM (17 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2683877
Default Alt Text
D6339.id21181.diff (1 KB)
Attached To
Mode
D6339: [keyserver] Ensure that we're including `calendarQuery` in `siweAccountCreationRequest`
Attached
Detach File
Event Timeline
Log In to Comment