From 6a18c62d31e570509f8334007004d715185006ba Mon Sep 17 00:00:00 2001 From: Romain Lanz Date: Tue, 10 Apr 2018 17:21:12 +0200 Subject: [PATCH] chore(auth): remove deprecated call Closes https://github.com/adonisjs/adonis-fullstack-app/issues/17 --- config/auth.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config/auth.js b/config/auth.js index 9a99108..f5336f0 100644 --- a/config/auth.js +++ b/config/auth.js @@ -1,5 +1,7 @@ 'use strict' +const Env = use('Env') + module.exports = { /* |-------------------------------------------------------------------------- @@ -69,7 +71,7 @@ module.exports = { uid: 'email', password: 'password', options: { - secret: 'self::app.appKey' + secret: Env.get('APP_KEY') } } }