inrupt / inrupt/solid-client-authn-js

Ensure the client can be used from a Web Worker

Open
#308 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

new feature
Dominant language
TypeScript
Stars
77
Forks
49
Avg merge
18h 20m
Merged PRs (30d)
32

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the client’s credential access and LocalStorage usage, then review the existing test setup for a Web Worker test. Add coverage showing that request-heavy client use works in a worker, including any credential-access behavior; done means the worker test passes without making the client unusable on the main thread.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
authentication, testing, web-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.