UNPKG

@fakel/rest-admin

Version:

An application that makes it easier to work with your API

12 lines (11 loc) 288 B
export declare type LoginCredentials = { username: string; password: string; }; export declare const useLogin: () => { login: (credentials: LoginCredentials) => Promise<void>; logout: () => Promise<void>; isAuthorized: boolean; user: any; loading: boolean; };