import { AuditsState, AuthState, AuthPageRoutes } from '@frontegg/redux-store'; export interface AuthOptions extends Partial> { keepSessionAlive?: boolean; includeQueryParam?: boolean; routes?: Partial; disableSilentRefresh?: boolean; /** * Determine if each tab operates with a separate tenant context */ enableSessionPerTenant?: boolean; /** * Determine if the redirect url query param of after auth should be enforced to same site */ enforceRedirectToSameSite?: boolean; /** * In case enforceRedirectToSameSite is enabled, use this white list to include all allowed origin of after auth redirect url */ allowedRedirectOrigins?: string[]; /** * Origins that are allowed to clear idle session timeout from */ clearIdleTimeoutAllowedOrigins?: string[]; /** * skip loading user profile, tenants and permissions on application load. * Ignored when `tenantSelection.enabled` is true — the tenant chooser requires the user's tenants to load. */ skipUserLoading?: boolean; /** * Advanced options for social logins flow */ socialLoginOptions?: { promptConsent?: boolean; }; /** * Advanced options for hosted login mode */ hostedLoginOptions?: { /** * Loading the user when the application renders, hiding your children until the user is loaded if exists */ loadUserOnFirstLoad?: boolean; }; /** * Post-login "choose your organization" step. When `enabled` and the user belongs to more than one * switchable tenant, the login-box routes to a tenant chooser after authentication (before finalizing). * Works in embedded and hosted modes; the hosted `prompt=select_account` flow sets this option via oauth-service. * Also gated by the `login-box-choose-tenant` feature flag. * When `enabled` is true, `skipUserLoading` is ignored — the chooser requires the user's tenants to load. */ tenantSelection?: { enabled?: boolean; }; } export interface AuditsOptions extends Partial { virtualScroll?: boolean; } export interface SubscriptionsOptions { billingAddressCollection?: boolean; } export interface FronteggStoreOptions { authOptions?: AuthOptions; auditsOptions?: AuditsOptions; subscriptionsOptions?: SubscriptionsOptions; }