We need to store device_token on web so we can save push service endpoints and auth info. This diff make deviceToken a proper field in web redux and enables the web app to set it's device token on keyserver. I've removed isDeviceType checks in places where previously we skipped handling deviceToken for the web platform.
Tested with the next diffs in stack that set the device_token:
- check that the device_token is correctly set in the database and in the redux on web
- check that after logging out the device_token is assigned to an anonymous cookie
- check that after another user logs in they get the device's device_token
|303 ↗||(On Diff #22825)|
This is changed for flow because no WebAppState also contains a deviceToken so we don't know if it's NativeAppState or WebAppState
|1 ↗||(On Diff #22825)|
|202 ↗||(On Diff #22825)|
This could be in baseReducer I think
Moved the code for the device token reducer to lib in a previous diff. Moved the device token to BaseAppState and reduce it in the baseReducer.