HomePhabricator
Diffusion Comm 077673982e9c

[native] Add dev-only button for primary device logout

Description

[native] Add dev-only button for primary device logout

Summary:
Similarly to D12222, added a dev-only button to perform primary device logout on native. It doesn't make sense on web
because calling the hook there breaks invariant (identity client method undefined, web cannot be primary).

For now, leaving two separate buttons to be able to test checks at lower level (e.g. server-side). But finally,
this will get replaced with a single button that performs different action based on the device being primary or secondary.
This is tracked in ENG-8550.

Depends on D12603

Test Plan: Both buttons are displayed in Profile menu on simulator. Test plan for D12603 is repeated to test hook behavior.

Reviewers: kamil, varun

Reviewed By: kamil

Subscribers: ashoat, tomek

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

Details

Provenance
bartekAuthored on Fri, Jun 28, 1:53 AM
Reviewer
kamil
Differential Revision
D12604: [native] Add dev-only button for primary device logout
Parents
rCOMM399567e31112: [lib] Add usePrimaryDeviceLogOut hook
Branches
Unknown
Tags
Unknown