[native] update Tunnelbroker init message to rely on Identity userID
Summary:
To authenticate we need to use ID assigned by identity.
I added accessToken as a dependency to fetch new Services Metadata each time CSAT changes (it should be caused by the event emitter that @marcin is implementing) so I think this should be safe and avoid any race conditions.
Note: This code is used for testing anyway and will change after making logging to Identity mandatory,
Depends on D10327
Test Plan:
- Login to staging Identity (loginPasswordUser).
- Call setCommServicesAuthMetadata.
- Dispatch action with the new access token.
- Check if the connection with staging Tunnelbroker was created.
Reviewers: marcin, varun, michal
Reviewed By: marcin
Subscribers: ashoat, tomek, marcin
Differential Revision: https://phab.comm.dev/D10370