fix(auth): add api authenticator config

This commit is contained in:
Romain Lanz 2018-08-28 23:43:50 +02:00
parent 702c41a25f
commit 11db440607
No known key found for this signature in database
GPG Key ID: 6C8EB7B74301AB6B

View File

@ -73,5 +73,21 @@ module.exports = {
options: {
secret: Env.get('APP_KEY')
}
},
/*
|--------------------------------------------------------------------------
| Api
|--------------------------------------------------------------------------
|
| The Api scheme makes use of API personal tokens to authenticate a user.
|
*/
api: {
serializer: 'lucid',
model: 'App/Models/User',
scheme: 'api',
uid: 'email',
password: 'password'
}
}