solid-client-authn-js icon indicating copy to clipboard operation
solid-client-authn-js copied to clipboard

Ensure the client can be used from a Web Worker

Open RubenVerborgh opened this issue 5 years ago • 1 comments

Is your feature request related to a problem? Please describe. We should ensure the client can be used from a Web Worker, so request-heavy code (think queries) can run in a background thread.

A problem could be that LocalStorage is not available in workers, so we'd have to proxy credential access to the main thread.

Describe the solution you'd like

  • add a test with a Web Worker
  • possibly fix LocalStorage to make that test work

Describe alternatives you've considered

  • main thread, but that can make things sluggish

Additional context

RubenVerborgh avatar Sep 09 '20 11:09 RubenVerborgh

#947 should be considered when adding support for Web Workers.

nicolasmondada avatar May 05 '22 12:05 nicolasmondada