Skip to content

Commit

Permalink
[lib] Introduce a restore flow flag
Browse files Browse the repository at this point in the history
Summary:
This flag is used to decide if we show the restore button.

https://linear.app/comm/issue/ENG-9679/create-a-screen-where-user-can-choose-between-usernamepassword-and

Test Plan: Flow

Reviewers: kamil, angelika, bartek

Reviewed By: kamil

Subscribers: ashoat

Differential Revision: https://phab.comm.dev/D13905
  • Loading branch information
palys-swm committed Nov 25, 2024
1 parent 1f6bdc3 commit ae96334
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/utils/services-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ const supportingMultipleKeyservers = false;
// an authoritative keyserver for things like DMs.
const relyingOnAuthoritativeKeyserver = true;

// If this is true, then we're using the login 2.0, which means that a user
// can either restore an account (primary login) or log in using the QR code
// (secondary login).
const usingRestoreFlow = false;

function handleHTTPResponseError(response: Response): void {
if (!response.ok) {
const { status, statusText } = response;
Expand Down Expand Up @@ -47,6 +52,7 @@ export {
usingCommServicesAccessToken,
supportingMultipleKeyservers,
relyingOnAuthoritativeKeyserver,
usingRestoreFlow,
createHTTPAuthorizationHeader,
createDefaultHTTPRequestHeaders,
};

0 comments on commit ae96334

Please sign in to comment.