@passflow/passflow-react-sdk
Version:
Passflow React UI Kit
14 lines • 563 B
TypeScript
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