diff options
author | MCMXC <16797721+mcmxcdev@users.noreply.github.com> | 2024-02-11 19:15:20 +0530 |
---|---|---|
committer | Vijay A <vraravam@users.noreply.github.com> | 2024-02-13 06:59:44 +0530 |
commit | 8fec21d6bccfa778c14c1714d6444312e36fc3f1 (patch) | |
tree | cab910ad5048eece2d229648f2c17000ac86a44d /app/Middleware/Auth.ts | |
parent | updates (diff) | |
download | ferdium-server-archive/20240218T055001Z/github/refactor/project-maintenance.tar.gz ferdium-server-archive/20240218T055001Z/github/refactor/project-maintenance.tar.zst ferdium-server-archive/20240218T055001Z/github/refactor/project-maintenance.zip |
Diffstat (limited to 'app/Middleware/Auth.ts')
-rw-r--r-- | app/Middleware/Auth.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/Middleware/Auth.ts b/app/Middleware/Auth.ts index b6ff446..58d5b76 100644 --- a/app/Middleware/Auth.ts +++ b/app/Middleware/Auth.ts | |||
@@ -3,7 +3,7 @@ import { HttpContext } from '@adonisjs/core/http'; | |||
3 | import { AuthenticationException } from '@adonisjs/auth/build/standalone'; | 3 | import { AuthenticationException } from '@adonisjs/auth/build/standalone'; |
4 | import * as jose from 'jose'; | 4 | import * as jose from 'jose'; |
5 | import { appKey } from '#config/app'; | 5 | import { appKey } from '#config/app'; |
6 | import User from '#app/Models/User'; | 6 | import User from '#models/User'; |
7 | 7 | ||
8 | /** | 8 | /** |
9 | * Auth middleware is meant to restrict un-authenticated access to a given route | 9 | * Auth middleware is meant to restrict un-authenticated access to a given route |
@@ -94,6 +94,7 @@ export default class AuthMiddleware { | |||
94 | /** | 94 | /** |
95 | * Handle request | 95 | * Handle request |
96 | */ | 96 | */ |
97 | // eslint-disable-next-line consistent-return | ||
97 | public async handle( | 98 | public async handle( |
98 | { request, auth, response }: HttpContext, | 99 | { request, auth, response }: HttpContext, |
99 | next: () => Promise<void>, | 100 | next: () => Promise<void>, |