UNPKG

@fakel/rest-admin

Version:

An application that makes it easier to work with your API

9 lines (8 loc) 337 B
import { useStore } from './useStore'; export var useAuthProviderStore = function () { var authProviderStore = useStore('authProviderStore'); if (!authProviderStore.authProvider) { throw new Error('Auth Provider not found in store. Define authProvider and pass into Admin props!'); } return authProviderStore; };