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
- Branch
- marcin/eng-7930
- Lint
No Lint Coverage - Unit
No Test Coverage
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 | 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 | I think the invariant you are requesting is already added at line 89. |