UNPKG

@fakel/ra-simple-auth

Version:

Simple auth provider for @fakel/rest-admin

13 lines (12 loc) 425 B
import { AuthProviderOptions } from './types'; export declare const createAuthProvider: (options: AuthProviderOptions) => { login: ({ username, password }: { username: any; password: any; }) => Promise<void>; logout: () => Promise<void>; checkAuth: () => Promise<any>; checkError: (error: any) => Promise<void>; getMe: () => Promise<any>; getPermissions: () => Promise<string>; };