Function: useValidateAuthenticator()
useValidateAuthenticator<
UserType
,Controller
>(__namedParameters
):object
This hook is used internally for validating an authenticator.
Type Parameters​
• UserType extends User
= User
• Controller extends AuthController
<UserType
> = AuthController
<UserType
>
Parameters​
• __namedParameters
• __namedParameters.authController: Controller
• __namedParameters.authenticator?: boolean
| Authenticator
<UserType
, Controller
>
• __namedParameters.dataSourceDelegate: DataSourceDelegate
• __namedParameters.disabled?: boolean
• __namedParameters.storageSource: StorageSource
Returns​
object
authLoading​
authLoading:
boolean
authVerified​
authVerified:
boolean
canAccessMainView​
canAccessMainView:
boolean
notAllowedError​
notAllowedError:
any
Defined in​
packages/firecms_core/src/hooks/useValidateAuthenticator.tsx:14