UNPKG

@adonisjs/auth

Version:

Official authentication provider for Adonis framework

17 lines (16 loc) 593 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 }}> }