Skip to main content
Version: 3.0.0-beta

Type Alias: Authenticator()<USER>

Authenticator<USER>: (props) => boolean | Promise<boolean>

Implement this function to allow access to specific users.

Type Parameters​

• USER extends User = User

Parameters​

• props

• props.authController: AuthController<USER>

AuthController

• props.dataSourceDelegate: DataSourceDelegate

Connector to your database, e.g. your Firestore database

• props.storageSource: StorageSource

Used storage implementation

• props.user: USER | null

Logged-in user or null

Returns​

boolean | Promise<boolean>

Defined in​

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

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