/** * Contract source: https://git.io/JOdz5 * * Feel free to let us know via PR, if you find something broken in this * file. */ {{#modelNamespace}} import {{ modelName }} from '{{{ modelNamespace }}}' {{/modelNamespace}} declare module '@ioc:Adonis/Addons/Auth' { /* |-------------------------------------------------------------------------- | Providers |-------------------------------------------------------------------------- | | The providers are used to fetch users. The Auth module comes pre-bundled | with two providers that are `Lucid` and `Database`. Both uses database | to fetch user details. | | You can also create and register your own custom providers. | */ interface ProvidersList { {{> provider}} } /* |-------------------------------------------------------------------------- | Guards |-------------------------------------------------------------------------- | | The guards are used for authenticating users using different drivers. | The auth module comes with 3 different guards. | | - SessionGuardContract | - BasicAuthGuardContract | - OATGuardContract ( Opaque access token ) | | Every guard needs a provider for looking up users from the database. | */ interface GuardsList { {{#hasGuard.web}} {{> web_guard}} {{/hasGuard.web}} {{#hasGuard.api}} {{> api_guard}} {{/hasGuard.api}} {{#hasGuard.basic}} {{> basic_guard}} {{/hasGuard.basic}} } }