Skip to main content
Version: 3.0.0-beta

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>

Defined in​

packages/firecms_core/src/types/auth.tsx:76

Sign up to our newsletter to get the latest news and updates. No spam!