UNPKG

react-cookie-auth

Version:

Authentication library with HTTP-only cookies and Page Visibility API for handling sleep/wake cycles

11 lines (10 loc) 414 B
import { AuthReducer, AuthState, User } from '../utils/types'; export declare const setUser: import("@reduxjs/toolkit").ActionCreatorWithPayload<User | null, "auth/setUser">; export declare const selectUser: (state: { auth: AuthState; }) => User | null; export declare const isAuthenticated: (state: { auth: AuthState; }) => boolean; declare const _default: AuthReducer; export default _default;