From 11db4406075b7e23509dd98f7ed0bbd9a6de6cb8 Mon Sep 17 00:00:00 2001 From: Romain Lanz Date: Tue, 28 Aug 2018 23:43:50 +0200 Subject: [PATCH] fix(auth): add api authenticator config --- config/auth.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/config/auth.js b/config/auth.js index f5336f0..9bbd33c 100644 --- a/config/auth.js +++ b/config/auth.js @@ -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' } }