Interface SolidDataClientOptions

interface SolidDataClientOptions {
    authServer?: Express | SolidAuthServerOptions;
    autoLogin?: boolean;
    clientId?: string;
    clientName?: string;
    clientSecret?: string;
    dataServiceDriver?: DataServiceDriver<string, string>;
    defaultOidcIssuer?: string;
    loginErrorCallback?: ((req, res, sessionInfo, reason) => void);
    loginPath?: string;
    loginSuccessCallback?: ((req, res, sessionInfo) => void);
    redirectPath?: string;
    redirectUrl?: string;
}

Hierarchy (view full)

Properties

authServer?: Express | SolidAuthServerOptions
autoLogin?: boolean

Automatically login after starting the server

Default

false
clientId?: string

Client identifier

clientName?: string

Client name displayed to the user

clientSecret?: string

Client secret

dataServiceDriver?: DataServiceDriver<string, string>

Data service driver to use for key:value pairs In a browser this should be @openhps/localstorage

defaultOidcIssuer?: string
loginErrorCallback?: ((req, res, sessionInfo, reason) => void)

Type declaration

    • (req, res, sessionInfo, reason): void
    • Parameters

      • req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>
      • res: Response<any, Record<string, any>>
      • sessionInfo: ISessionInfo
      • reason: any

      Returns void

loginPath?: string
loginSuccessCallback?: ((req, res, sessionInfo) => void)

Type declaration

    • (req, res, sessionInfo): void
    • Parameters

      • req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>
      • res: Response<any, Record<string, any>>
      • sessionInfo: ISessionInfo

      Returns void

redirectPath?: string
redirectUrl?: string

Redirect URL