HomePhabricator
Diffusion Comm d8b480c08344

[native] helper functions for PAKE login workflow

Description

[native] helper functions for PAKE login workflow

Summary:
Helper functions that handle the PAKE login workflow.

Admittedly, there's some code from the RegisterUser workflow repeated here. Because the gRPC message is slightly different (RegistrationResponse vs LoginResponse), it's hard to handle both response types in a single function without a lot of match statements and nesting. I'll create a task to make this more DRY.

Depends on D4905

Test Plan: cargo build, tested later in login_user method

Reviewers: tomek, karol, atul

Reviewed By: tomek

Subscribers: ashoat, abosh

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

Details

Provenance
varunAuthored on Aug 22 2022, 8:58 PM
Reviewer
tomek
Differential Revision
D4906: [native] helper functions for PAKE login workflow
Parents
rCOMMe46754ceabfd: [native] introduce generic for unexpected response handler
Branches
Unknown
Tags
Unknown