Page MenuHomePhabricator

[lib] Modify `siweAuth(...)` return type from `LogInResponse` to `LogInResult`
ClosedPublic

Authored by atul on Dec 29 2022, 1:23 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Nov 10, 7:45 AM
Unknown Object (File)
Fri, Nov 8, 4:17 PM
Unknown Object (File)
Fri, Nov 8, 4:17 PM
Unknown Object (File)
Fri, Nov 8, 4:17 PM
Unknown Object (File)
Fri, Nov 8, 4:17 PM
Unknown Object (File)
Fri, Nov 8, 3:49 PM
Unknown Object (File)
Fri, Nov 8, 3:48 PM
Unknown Object (File)
Mon, Nov 4, 6:45 AM
Subscribers
None

Details

Summary

We construct LogInResult using the request payload (SIWEAuthServerCall) and the respond (LogInResponse). Code was effectively cut/paste from lib/actions/user-actions:logIn.


Depends on D6077

Test Plan

Will be tested implicitly by subsequent diffs.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

atul requested review of this revision.Dec 29 2022, 1:36 AM
tomek added inline comments.
lib/actions/siwe-actions.js
4–5

We can merge these imports

This revision is now accepted and ready to land.Dec 29 2022, 4:24 AM
lib/actions/siwe-actions.js
4–5

Thanks for catching that!

This revision was landed with ongoing or failed builds.Dec 29 2022, 2:07 PM
This revision was automatically updated to reflect the committed changes.