HomePhabricator
Diffusion Comm 14ef5bb851df

[web] Add identity client shared worker proxy

Description

[web] Add identity client shared worker proxy

Summary:
[ENG-6767 : Introduce IdentityServiceClientWrapper proxy](https://linear.app/comm/issue/ENG-6767/introduce-identityserviceclientwrapper-proxy)

Adds IdentityServiceClientSharedProxy which proxies the identity service request to the shared worker. Each method gets a new worker request message and if it returns a value also a response message. IdentityServiceContextProvider can now optionally (behind a flag) return the proxy instead of the "real" identity client.

Depends on D11274

Test Plan:

  • Make sure that if e.g. access token changes that the identity client on shared worker is recreated with new credentials
  • generateNonce/getKeyserverKeys/uploadOneTimeKeys/publishWebPrekeys/getInboundKeysForUser/getOutboundKeysForUser/deleteUser/logInPasswordUser (everything except for the logInWalletUser) and made sure that they work

Reviewers: kamil, tomek

Reviewed By: kamil

Subscribers: ashoat

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

Details

Provenance
Michal Gniadek <michal.gniadek@swmansion.com>Authored on Mar 7 2024, 5:06 AM
Reviewer
kamil
Differential Revision
D11275: [web] Add identity client shared worker proxy
Parents
rCOMMbffa8bcab6d5: [web] Create identity client on shared worker
Branches
Unknown
Tags
Unknown

Event Timeline