Skip to main content

Type alias: Authenticator

Ƭ Authenticator: ({ user }: { authController: AuthController ; user?: User }) => boolean | Promise<boolean>

Implement this function to allow access to specific users. You might want to load additional properties for a user asynchronously and store it using the setExtra method in the authController

Type declaration#

▸ ({ user }): boolean | Promise<boolean>

Parameters#
NameType
{ user }Object
{ user }.authControllerAuthController
{ user }.user?User
Returns#

boolean | Promise<boolean>

Defined in#

models/user.ts:60