AuthContextType type

Home > @galvanize-inc/jwtdown-for-react > AuthContextType

AuthContextType type#

Object containing the state of AuthContext. This is returned by useAuthContext and is useful to retrieve the token provided by the backend.

Signature:

export declare type AuthContextType = {
  token: string | null;
  setToken: Dispatch<SetStateAction<string | null>>;
  baseUrl: string;
};