aboutsummaryrefslogtreecommitdiffstats
path: root/config/auth.js
diff options
context:
space:
mode:
Diffstat (limited to 'config/auth.js')
-rw-r--r--config/auth.js17
1 files changed, 8 insertions, 9 deletions
diff --git a/config/auth.js b/config/auth.js
index c70db3f..b831b06 100644
--- a/config/auth.js
+++ b/config/auth.js
@@ -1,7 +1,6 @@
1'use strict'
2 1
3/** @type {import('@adonisjs/framework/src/Env')} */ 2/** @type {import('@adonisjs/framework/src/Env')} */
4const Env = use('Env') 3const Env = use('Env');
5 4
6module.exports = { 5module.exports = {
7 /* 6 /*
@@ -32,7 +31,7 @@ module.exports = {
32 model: 'App/Models/User', 31 model: 'App/Models/User',
33 scheme: 'session', 32 scheme: 'session',
34 uid: 'email', 33 uid: 'email',
35 password: 'password' 34 password: 'password',
36 }, 35 },
37 36
38 /* 37 /*
@@ -53,7 +52,7 @@ module.exports = {
53 model: 'App/Models/User', 52 model: 'App/Models/User',
54 scheme: 'basic', 53 scheme: 'basic',
55 uid: 'email', 54 uid: 'email',
56 password: 'password' 55 password: 'password',
57 }, 56 },
58 57
59 /* 58 /*
@@ -72,8 +71,8 @@ module.exports = {
72 uid: 'email', 71 uid: 'email',
73 password: 'password', 72 password: 'password',
74 options: { 73 options: {
75 secret: Env.get('APP_KEY') 74 secret: Env.get('APP_KEY'),
76 } 75 },
77 }, 76 },
78 77
79 /* 78 /*
@@ -89,6 +88,6 @@ module.exports = {
89 model: 'App/Models/User', 88 model: 'App/Models/User',
90 scheme: 'api', 89 scheme: 'api',
91 uid: 'email', 90 uid: 'email',
92 password: 'password' 91 password: 'password',
93 } 92 },
94} 93};