diff options
Diffstat (limited to 'config/auth.ts')
-rw-r--r-- | config/auth.ts | 9 |
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 | }, |