@adonisjs/auth
Version:
Official authentication provider for Adonis framework
23 lines (20 loc) • 641 B
Plain Text
/*
|--------------------------------------------------------------------------
| OAT Guard
|--------------------------------------------------------------------------
|
| OAT (Opaque access tokens) guard uses database backed tokens to authenticate
| HTTP request. This guard DOES NOT rely on sessions or cookies and uses
| Authorization header value for authentication.
|
| Use this guard to authenticate mobile apps or web clients that cannot rely
| on cookies/sessions.
|
*/
api: {
driver: 'oat',
{{> token_provider}}
provider: {
{{> provider}}
},
},