HomePhabricator
Diffusion Comm 145a81b1d298

[native] Store access token in Redux

Description

[native] Store access token in Redux

Summary:
Introduce a handler that:

  1. Reads the token from core module
  2. Listens for its changes
  3. Updates the store with the most recent value

https://linear.app/comm/issue/ENG-6597/store-csat-in-redux

Depends on D10866

Test Plan: Call commCoreModule.setCommServicesAuthMetadata and check if the token in Redux is updated. Add a timeout with a call to commCoreModule.setCommServicesAuthMetadata and check if it results in the token being updated.

Reviewers: varun, inka, kamil, bartek

Reviewed By: inka, bartek

Subscribers: ashoat

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

Details

Provenance
tomekAuthored on Jan 29 2024, 4:05 AM
Reviewer
inka
Differential Revision
D10867: [native] Store access token in Redux
Parents
rCOMM0481dc169f90: [native] Emit a token and user ID after setting the values
Branches
Unknown
Tags
Unknown