Page MenuHomePhabricator

[lib] Introduce `SIWEAuthServerCall` and use as argument for `siweAuth()`
ClosedPublic

Authored by atul on Dec 24 2022, 7:57 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 18, 6:18 PM
Unknown Object (File)
Wed, Dec 18, 6:18 PM
Unknown Object (File)
Wed, Dec 18, 6:18 PM
Unknown Object (File)
Wed, Dec 18, 6:18 PM
Unknown Object (File)
Tue, Dec 3, 5:28 PM
Unknown Object (File)
Sat, Nov 30, 6:52 AM
Unknown Object (File)
Sat, Nov 30, 5:53 AM
Unknown Object (File)
Thu, Nov 28, 10:34 PM
Subscribers
None

Details

Summary

Introduce the SIWEAuthServerCall type and use as the argument for siweAuth().

We're also updating the return type of the siwe_auth endpoint to boolean for now. The boolean will represent whether or not the nonce, message, and signature in the request are valid and the auth request is "succesful." However, we won't actually register or log in just yet, that will be handled in subsequent diffs (at which point we'll switch from boolean to something like RegisterResponse | LogInResponse).


Depends on D6025

Test Plan

Will be tested implicitly by subsequent diffs... but able to hit endpoint.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul requested review of this revision.Dec 24 2022, 8:11 PM
This revision is now accepted and ready to land.Dec 25 2022, 7:23 PM
This revision was landed with ongoing or failed builds.Dec 27 2022, 12:25 AM
This revision was automatically updated to reflect the committed changes.