HomePhabricator
Diffusion Comm c322654268c3

[native] Modify `SIWEPanel` to hit `siwe_auth` endpoint once SIWE message is…

Description

[native] Modify SIWEPanel to hit siwe_auth endpoint once SIWE message is signed

Summary:
Modify SIWEPanel to hit the siwe_auth endpoint instead of the create_account endpoint once SIWE message is signed.

We also modify the SIWE_AUTH_SUCCESS payload to a boolean indicating whether the signed message is valid and login/registration can continue.

NOTE: For now we will return from siweAuthResponder BEFORE login/registration... login/registration will come later at which point the payload for SIWE_AUTH_SUCCESS will look like RegisterResponse | LogInResponse or something.

Depends on D6026

Test Plan:
Able to hit the endpoint and verify that the request payload is as expected:
https://blob.sh/58459b.png

Reviewers: ashoat, tomek

Reviewed By: ashoat

Differential Revision: https://phab.comm.dev/D6028