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)
Sun, Jun 30, 12:39 AM
Unknown Object (File)
Sat, Jun 29, 5:53 PM
Unknown Object (File)
Sat, Jun 29, 2:59 PM
Unknown Object (File)
Wed, Jun 26, 12:41 AM
Unknown Object (File)
Wed, Jun 26, 12:41 AM
Unknown Object (File)
Wed, Jun 26, 12:41 AM
Unknown Object (File)
Wed, Jun 26, 12:41 AM
Unknown Object (File)
Wed, Jun 26, 12:40 AM
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.