This differential introduces different SIWE message content for social proof and backup message.
Details
Details
- Ensure that siwe-utils.test.js pass during commit.
- I executed SIWE login flow and ensured that messages that appear in rainbow app match expected content.
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Screen shot of rainbow app during social proof signature generation:
Screen shot of rainbow app during backup message signature generation:
lib/utils/siwe-utils.js | ||
---|---|---|
83 ↗ | (On Diff #39434) | Invariant can be avoided here and more specific type can be used. However this value is extracted from WebView headers in landing-handler. Therefore in order to avoid invariant here we will need to cast from string to SIWEMEssageType in landing-handler. This casting will have to use any. In my opinion it should be safe since in landing-handler we will use validator anyway before casting. |
96–99 ↗ | (On Diff #39434) | I think the invariant you are requesting is already added at line 89. |