Type Alias: Authenticator()<UserType, Controller>
Authenticator<
UserType
,Controller
>: (props
) =>boolean
|Promise
<boolean
>
Implement this function to allow access to specific users.
Type Parameters​
• UserType extends User
= User
• Controller extends AuthController
<UserType
> = AuthController
<UserType
>
Parameters​
• props
• props.authController: Controller
AuthController
• props.dataSourceDelegate: DataSourceDelegate
Connector to your database, e.g. your Firestore database
• props.storageSource: StorageSource
Used storage implementation
• props.user: UserType
| null
Logged-in user or null
Returns​
boolean
| Promise
<boolean
>