Skip to content

Uvdsl2 - #321

Merged
bourgeoa merged 23 commits into
mainfrom
uvdsl2
Aug 19, 2026
Merged

Uvdsl2#321
bourgeoa merged 23 commits into
mainfrom
uvdsl2

Conversation

@bourgeoa

Copy link
Copy Markdown
Contributor

No description provided.

bourgeoa and others added 23 commits August 16, 2026 13:17
- Convert `SessionWithLegacyEvents` imports to type-only imports to avoid runtime side effects when importing auth-related modules
- Prevent eager initialization of `authSession` via type-only usage in:
  - types.ts
  - SolidAuthnLogic.ts
  - solidLogic.ts
- Add focused tests for fetch bridge behavior in `solidLogicSingleton`:
  - use `window.fetch` when `credentials: omit`
  - fall back to `authFetch` when `session.fetch` is unavailable
- Keep migration compatibility behavior intact while improving import safety and regression coverage
Skip WebSession worker initialization for localhost/127.0.0.1 over http and use SessionCore with IndexedDB directly.

This prevents browser SecurityError noise from file:// worker resolution in local dev while keeping normal session behavior in other environments.
- session.ts: OIDC session factory (WebSession/SessionCore, database backends)
- events.ts: SessionEvents class (pure EventEmitter shim, zero side-effects)
- issuer.ts: issuer discovery via /.well-known/openid-configuration
- authSession.ts: login compatibility shim, legacy event wiring, authSession
  assembly; re-exports authSession and SessionWithLegacyEvents type

All existing imports continue working unchanged — authSession.ts is a
drop-in replacement with the same exports.
… tests

info is now a derived getter (from webId/isActive), so tests reset the
session via webId instead of assigning to info.
@bourgeoa
bourgeoa merged commit a05880a into main Aug 19, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants