UNPKG

@adonisjs/auth

Version:

Offical authentication provider for Adonis framework

17 lines (16 loc) 596 B
/* |-------------------------------------------------------------------------- | User Provider |-------------------------------------------------------------------------- | | The following provider uses Lucid models as a driver for fetching user | details from the database for authentication. | | You can create multiple providers using the same underlying driver with | different Lucid models. | */ user: { implementation: LucidProviderContract<typeof {{ modelName }}>, config: LucidProviderConfig<typeof {{ modelName }}>, },