UNPKG

react-auth-kit

Version:

Authentication Library for React, which makes Token based auth very easy

15 lines (14 loc) 400 B
import type { Context } from 'react'; import TokenObject from './RxTokenObject'; declare const AuthKitContext: Context<TokenObject<unknown>>; /** * * @internal * @returns TokenObject from the context * * React Context consumer to globally hold the * TokenObject instance in the application. * */ export declare function useReactAuthKit(): TokenObject<unknown>; export default AuthKitContext;