fix(auth): add api authenticator config
This commit is contained in:
parent
702c41a25f
commit
11db440607
|
@ -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'
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user