inrupt / inrupt/solid-client-authn-js
Ensure the client can be used from a Web Worker
Nobody has claimed this yet.
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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