From 8fec21d6bccfa778c14c1714d6444312e36fc3f1 Mon Sep 17 00:00:00 2001 From: MCMXC <16797721+mcmxcdev@users.noreply.github.com> Date: Sun, 11 Feb 2024 19:15:20 +0530 Subject: more updates --- config/auth.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'config/auth.ts') 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 = { | that time. | */ - model: () => import('App/Models/User'), + model: () => import('#app/Models/User'), }, }, /* @@ -163,7 +163,7 @@ const authConfig: AuthConfig = { | that time. | */ - model: () => import('App/Models/User'), + model: () => import('#app/Models/User'), }, }, /* @@ -226,7 +226,7 @@ const authConfig: AuthConfig = { | that time. | */ - model: () => import('App/Models/User'), + model: () => import('#app/Models/User'), }, }, jwt: { @@ -242,7 +242,6 @@ const authConfig: AuthConfig = { persistJwt: true, // TODO: We should improve the following implementation as this is a security concern. // The following ts-expect-error is to set exp to undefined (JWT with no expiration) - // @ts-expect-error jwtDefaultExpire: undefined, refreshTokenDefaultExpire: '10d', tokenProvider: { @@ -254,7 +253,7 @@ const authConfig: AuthConfig = { driver: 'lucid', identifierKey: 'id', uids: [], - model: () => import('App/Models/User'), + model: () => import('#app/Models/User'), }, }, }, -- cgit v1.2.3-54-g00ecf