UNPKG

@passflow/passflow-react-sdk

Version:
24 lines 911 B
import { AppSettings, Passflow, PassflowPasswordPolicySettings } from '@passflow/passflow-js-sdk'; import { Dispatch } from 'react'; export type PassflowState = { appSettings: AppSettings | null; passwordPolicy: PassflowPasswordPolicySettings | null; url?: string; appId?: string; scopes?: string[]; createTenantForNewUser?: boolean; parseQueryParams?: boolean; }; export type PassflowAction = { type: 'SET_PASSFLOW_STATE'; payload: PassflowState; }; export type PassflowContextType = { state: PassflowState; dispatch: Dispatch<PassflowAction>; passflow: Passflow; }; export declare const initialState: PassflowState; export declare const PassflowContext: import('react').Context<PassflowContextType | undefined>; export declare const passflowReducer: (state: PassflowState, action: PassflowAction) => PassflowState; //# sourceMappingURL=passflow-context.d.ts.map