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)
Sat, Nov 9, 8:38 AM
Unknown Object (File)
Sat, Nov 9, 7:11 AM
Unknown Object (File)
Sat, Nov 9, 4:45 AM
Unknown Object (File)
Sat, Nov 9, 4:24 AM
Unknown Object (File)
Sun, Nov 3, 8:03 AM
Unknown Object (File)
Sat, Oct 12, 8:33 PM
Unknown Object (File)
Sat, Oct 12, 8:33 PM
Unknown Object (File)
Sat, Oct 12, 8:33 PM
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.