summaryrefslogtreecommitdiffstats
path: root/app/Middleware/SilentAuth.ts
diff options
context:
space:
mode:
Diffstat (limited to 'app/Middleware/SilentAuth.ts')
-rw-r--r--app/Middleware/SilentAuth.ts6
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 @@
1import { HttpContext } from '@adonisjs/core/http' 1import { 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}