Page MenuHomePhabricator

[keyserver][lib][web] Update SIWE package
ClosedPublic

Authored by ashoat on Apr 4 2024, 11:42 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jun 24, 3:31 PM
Unknown Object (File)
Mon, Jun 17, 11:33 PM
Unknown Object (File)
Sat, Jun 15, 5:33 PM
Unknown Object (File)
Sat, Jun 15, 7:32 AM
Unknown Object (File)
Fri, Jun 14, 9:39 AM
Unknown Object (File)
Fri, Jun 14, 2:54 AM
Unknown Object (File)
Wed, Jun 12, 7:52 AM
Unknown Object (File)
Apr 13 2024, 7:02 AM
Subscribers

Details

Summary

Resolves ENG-7654.

Depends on D11557

Test Plan

Tested the SIWE flow end-to-end on web and confirmed it works again

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

keyserver/src/responders/user-responders.js
609 ↗(On Diff #38786)

This change is explained here

617–619 ↗(On Diff #38786)

It appears that in this massive PR, MALFORMED_SESSION was split into a bunch of more specific errors, which are now here. Rather than continuing to enumerate each error (there were originally only these three), I'm opting to throw the unknown_error in most cases. Clients never had code to handle malformed_session anyways

web/package.json
99 ↗(On Diff #38786)

I removed siwe from web because it isn't used directly there at all

Harbormaster returned this revision to the author for changes because remote builds failed.Apr 4 2024, 12:00 PM
Harbormaster failed remote builds in B27984: Diff 38786!
keyserver/src/responders/user-responders.js
609 ↗(On Diff #38791)

This change is explained here

617–619 ↗(On Diff #38791)

It appears that in this massive PR, MALFORMED_SESSION was split into a bunch of more specific errors, which are now here. Rather than continuing to enumerate each error (there were originally only these three), I'm opting to throw the unknown_error in most cases. Clients never had code to handle malformed_session anyways

web/package.json
99 ↗(On Diff #38791)

I removed siwe from web because it isn't used directly there at all

Harbormaster returned this revision to the author for changes because remote builds failed.Apr 4 2024, 1:06 PM
Harbormaster failed remote builds in B27989: Diff 38791!

Patch siwe to avoid named capture groups in RegExp breaking Hermes

keyserver/src/responders/user-responders.js
609 ↗(On Diff #38811)

This change is explained here

617–619 ↗(On Diff #38811)

It appears that in this massive PR, MALFORMED_SESSION was split into a bunch of more specific errors, which are now here. Rather than continuing to enumerate each error (there were originally only these three), I'm opting to throw the unknown_error in most cases. Clients never had code to handle malformed_session anyways

patches/siwe+2.1.4.patch
1–27 ↗(On Diff #38811)

This was necessary because Hermes (React Native JS engine) does not support "named capture groups" in RegExp

web/package.json
99 ↗(On Diff #38811)

I removed siwe from web because it isn't used directly there at all

ashoat requested review of this revision.Apr 4 2024, 1:55 PM
This revision is now accepted and ready to land.Apr 4 2024, 6:41 PM
This revision was automatically updated to reflect the committed changes.