HomePhabricator
Diffusion Comm 25526c596bb4

[lib] Add a function for sanitizing the state on identity actions

Description

[lib] Add a function for sanitizing the state on identity actions

Summary:
issue: ENG-6424
We want to reset the state to default on identity login / logout / delete account. We want to do it in one place, to reduce the risk of accidentally not clearing some state, and leaking data.
We want to have a "white list" of fields that are not supposed to be wiped. For example commServicesAccessToken, loadingStatuses, notifPermissionAlertInfo, lifecycleState etc.

Test Plan: ran the provided test

Reviewers: michal, kamil, ginsu, ashoat

Reviewed By: ashoat

Subscribers: ashoat, tomek

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

Details

Provenance
inkaAuthored on Jan 24 2024, 5:24 AM
Reviewer
ashoat
Differential Revision
D10801: [lib] Add a function for sanitizing the state on identity actions
Parents
rCOMM2769889f02eb: [identity] Verify nonce expiration and set TTL to 120s
Branches
Unknown
Tags
Unknown