diff options
author | 2024-02-10 18:37:40 -0700 | |
---|---|---|
committer | 2024-02-13 06:59:44 +0530 | |
commit | e1c47572a6235fd8fd20af888ac3a11c7ae1369d (patch) | |
tree | 2dccff36a441916d7014037cef3f7ce84a790cad /app/Middleware/SilentAuth.ts | |
parent | refactor: project maintenance (diff) | |
download | ferdium-server-e1c47572a6235fd8fd20af888ac3a11c7ae1369d.tar.gz ferdium-server-e1c47572a6235fd8fd20af888ac3a11c7ae1369d.tar.zst ferdium-server-e1c47572a6235fd8fd20af888ac3a11c7ae1369d.zip |
updates
Diffstat (limited to 'app/Middleware/SilentAuth.ts')
-rw-r--r-- | app/Middleware/SilentAuth.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Middleware/SilentAuth.ts b/app/Middleware/SilentAuth.ts index a7271d5..6ff7423 100644 --- a/app/Middleware/SilentAuth.ts +++ b/app/Middleware/SilentAuth.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | import { HttpContext } from '@adonisjs/core/http' | 1 | import { HttpContext } from '@adonisjs/core/http'; |
2 | 2 | ||
3 | /** | 3 | /** |
4 | * Silent auth middleware can be used as a global middleware to silent check | 4 | * Silent auth middleware can be used as a global middleware to silent check |
@@ -15,7 +15,7 @@ export default class SilentAuthMiddleware { | |||
15 | * Check if user is logged-in or not. If yes, then `ctx.auth.user` will be | 15 | * Check if user is logged-in or not. If yes, then `ctx.auth.user` will be |
16 | * set to the instance of the currently logged in user. | 16 | * set to the instance of the currently logged in user. |
17 | */ | 17 | */ |
18 | await auth.check() | 18 | await auth.check(); |
19 | await next() | 19 | await next(); |
20 | } | 20 | } |
21 | } | 21 | } |