@twinfinity/core
    Preparing search index...

    Interface TwinfinitySessionDependencies

    interface TwinfinitySessionDependencies {
        currentUrl: string | URL;
        fetchProviderMetadata?: (
            configurationUrl: string | URL,
            fetch?: typeof fetch,
        ) => Promise<OpenIdProviderMetadata>;
        OpenIdConnectClient: typeof OpenIdConnectClient;
        sessionStorage: undefined | Storage;
    }
    Index

    Properties

    currentUrl: string | URL
    fetchProviderMetadata?: (
        configurationUrl: string | URL,
        fetch?: typeof fetch,
    ) => Promise<OpenIdProviderMetadata>

    Fetches the OpenID Connect provider metadata document. Injectable so tests can hold the fetch pending (the build server's test runner does not support vi.mock module factories).

    Type declaration

    OpenIdConnectClient: typeof OpenIdConnectClient
    sessionStorage: undefined | Storage