HomePhabricator
Diffusion Comm bffa8bcab6d5

[web] Create identity client on shared worker

Description

[web] Create identity client on shared worker

Summary:
Creating IdentityServiceClientWrapper inside of the shared worker.

Depends on D11273

Test Plan:

  • Make sure opaque WASM is loaded on both dev and docker (prod)
  • Create identity service client and try to generate a nonce, check if it connected and returned a result

Creation code:

await sharedWorker.schedule({
  type: workerRequestMessageTypes.CREATE_IDENTITY_SERVICE_CLIENT,
  opaqueWasmPath: opaqueWasmPath(),
  platformDetails: getConfig().platformDetails,
  authLayer,
});

Reviewers: kamil, tomek, marcin

Reviewed By: kamil

Subscribers: marcin, varun, ashoat

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

Details

Event Timeline