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
F2894636: D6026.id20128.diff
Fri, Oct 4, 4:13 PM
F2894483: D6026.id20129.diff
Fri, Oct 4, 4:03 PM
F2894475: D6026.id20130.diff
Fri, Oct 4, 3:59 PM
Unknown Object (File)
Thu, Sep 26, 10:41 PM
Unknown Object (File)
Thu, Sep 26, 3:02 PM
Unknown Object (File)
Sat, Sep 21, 11:07 PM
Unknown Object (File)
Wed, Sep 11, 2:47 AM
Unknown Object (File)
Tue, Sep 10, 9:00 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.