HomePhabricator
Diffusion Comm a05e97f0976b

[lib][native] Move reduceServicesAccessToken and setAccessTokenActionType to…

Description

[lib][native] Move reduceServicesAccessToken and setAccessTokenActionType to native

Summary:
issue: ENG-7898
Now that this reducer reduces only setAccessTokenActionType , we can move this logic to native, since web doesn't use this action.

Test Plan:

  1. Tested that on web CSAT is cleared on logout, and is present when user is logged in
  2. Tested that on logout CSAT is set to an empty string on native
  3. Tested that on login CSAT is set to a non empty string on native
  4. Tested that if setNewSessionActionType with cookieInvalidated is dispatched, then the user is logged out and the CSAT is cleared

+flow

Reviewers: tomek, marcin

Reviewed By: tomek

Subscribers: ashoat

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

Details