UNPKG

@firecms/core

Version:

Awesome Firebase/Firestore-based headless open-source CMS

22 lines (21 loc) 749 B
import { AuthController, Authenticator, DataSourceDelegate, StorageSource, User } from "../index"; /** * This hook is used internally for validating an authenticator. * * @param authController * @param authentication * @param storageSource * @param dataSourceDelegate */ export declare function useValidateAuthenticator<USER extends User = any>({ disabled, authController, authenticator, storageSource, dataSourceDelegate }: { disabled?: boolean; authController: AuthController<USER>; authenticator?: boolean | Authenticator<USER>; dataSourceDelegate: DataSourceDelegate; storageSource: StorageSource; }): { canAccessMainView: boolean; authLoading: boolean; notAllowedError: any; authVerified: boolean; };