/** * The configuration interface for the SDK */ export interface SDKConfig { /** * Service configuration */ 'service': ServiceConfig; /** * The URL of the frontend. Leave empty if none. Will be concatenated with redirectURL */ 'frontendURL'?: string; /** * If running in prod or not */ 'prod': boolean; /** * The verification type the advanced verification function should use */ 'advancedVerification': VerificationType; /** * The type of session store you are using */ 'sessionType': SessionType; /** * The CORS whitelist for which base URLs to allow CORS from */ 'corsWhitelist': string[]; /** * The path to the logout store. Leave empty to not store on disk */ 'toBeLoggedOutStorePath'?: string; /** * Primarily used for testing. If left empty, will use default */ 'accountServiceURL'?: string; /** * Set the URL to redirect to on login if none is specified. If left empty, defaults to /account */ 'defaultRedirectURL'?: string; /** * The number of seconds until on the advancedLoginCheck middleware, a full check is executed again */ 'recheckTimeout': number; /** * The user-agent to verify against when checking authentication. Set to * to disable check */ 'user-agent': string; }