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