diff options
author | MCMXC <16797721+mcmxcdev@users.noreply.github.com> | 2024-02-10 18:37:40 -0700 |
---|---|---|
committer | MCMXC <16797721+mcmxcdev@users.noreply.github.com> | 2024-02-10 18:37:40 -0700 |
commit | 2ad43db1ed01fe0b5b116ddda1a5177c9f62c130 (patch) | |
tree | 8a6c6b551e7216d40c86e0954d828c783848a37b /app/Middleware/SilentAuth.ts | |
parent | refactor: project maintenance (diff) | |
download | ferdium-server-2ad43db1ed01fe0b5b116ddda1a5177c9f62c130.tar.gz ferdium-server-2ad43db1ed01fe0b5b116ddda1a5177c9f62c130.tar.zst ferdium-server-2ad43db1ed01fe0b5b116ddda1a5177c9f62c130.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 | } |