summaryrefslogtreecommitdiffstats
path: root/config/auth.ts
diff options
context:
space:
mode:
authorLibravatar MCMXC <16797721+mcmxcdev@users.noreply.github.com>2024-02-11 19:15:20 +0530
committerLibravatar Vijay A <vraravam@users.noreply.github.com>2024-02-13 06:59:44 +0530
commit8fec21d6bccfa778c14c1714d6444312e36fc3f1 (patch)
treecab910ad5048eece2d229648f2c17000ac86a44d /config/auth.ts
parentupdates (diff)
downloadferdium-server-archive/20240218T055001Z/github/refactor/project-maintenance.tar.gz
ferdium-server-archive/20240218T055001Z/github/refactor/project-maintenance.tar.zst
ferdium-server-archive/20240218T055001Z/github/refactor/project-maintenance.zip
Diffstat (limited to 'config/auth.ts')
-rw-r--r--config/auth.ts9
1 files changed, 4 insertions, 5 deletions
diff --git a/config/auth.ts b/config/auth.ts
index a3fcc45..976aa19 100644
--- a/config/auth.ts
+++ b/config/auth.ts
@@ -79,7 +79,7 @@ const authConfig: AuthConfig = {
79 | that time. 79 | that time.
80 | 80 |
81 */ 81 */
82 model: () => import('App/Models/User'), 82 model: () => import('#app/Models/User'),
83 }, 83 },
84 }, 84 },
85 /* 85 /*
@@ -163,7 +163,7 @@ const authConfig: AuthConfig = {
163 | that time. 163 | that time.
164 | 164 |
165 */ 165 */
166 model: () => import('App/Models/User'), 166 model: () => import('#app/Models/User'),
167 }, 167 },
168 }, 168 },
169 /* 169 /*
@@ -226,7 +226,7 @@ const authConfig: AuthConfig = {
226 | that time. 226 | that time.
227 | 227 |
228 */ 228 */
229 model: () => import('App/Models/User'), 229 model: () => import('#app/Models/User'),
230 }, 230 },
231 }, 231 },
232 jwt: { 232 jwt: {
@@ -242,7 +242,6 @@ const authConfig: AuthConfig = {
242 persistJwt: true, 242 persistJwt: true,
243 // TODO: We should improve the following implementation as this is a security concern. 243 // TODO: We should improve the following implementation as this is a security concern.
244 // The following ts-expect-error is to set exp to undefined (JWT with no expiration) 244 // The following ts-expect-error is to set exp to undefined (JWT with no expiration)
245 // @ts-expect-error
246 jwtDefaultExpire: undefined, 245 jwtDefaultExpire: undefined,
247 refreshTokenDefaultExpire: '10d', 246 refreshTokenDefaultExpire: '10d',
248 tokenProvider: { 247 tokenProvider: {
@@ -254,7 +253,7 @@ const authConfig: AuthConfig = {
254 driver: 'lucid', 253 driver: 'lucid',
255 identifierKey: 'id', 254 identifierKey: 'id',
256 uids: [], 255 uids: [],
257 model: () => import('App/Models/User'), 256 model: () => import('#app/Models/User'),
258 }, 257 },
259 }, 258 },
260 }, 259 },