UNPKG

@passflow/passflow-react-sdk

Version:
14 lines 563 B
import { FC, PropsWithChildren } from 'react'; import { ParsedTokens, Tokens } from '@passflow/passflow-js-sdk'; export type AuthContextValue = { isAuthenticated: () => boolean; logout: () => void; isLoading: boolean; getTokens: (doRefresh: boolean) => Promise<{ tokens: Tokens | undefined; parsedTokens: ParsedTokens | undefined; }>; }; export declare const AuthContext: import('react').Context<AuthContextValue | undefined>; export declare const AuthProvider: FC<PropsWithChildren>; //# sourceMappingURL=auth-context.d.ts.map