UNPKG

@fakel/ra-simple-auth

Version:

Simple auth provider for @fakel/rest-admin

17 lines (16 loc) 456 B
export declare type LoginPayload = { username: string; password: string; }; export declare type AuthProvider = { login: (payload: LoginPayload) => Promise<void>; logout: () => Promise<void>; getMe: () => Promise<any>; getPermissions: () => Promise<any>; checkAuth: () => Promise<boolean>; checkError: (error: any) => Promise<void>; }; export declare type AuthProviderOptions = { apiBaseUrl: string; client?: any; };