From 8fec21d6bccfa778c14c1714d6444312e36fc3f1 Mon Sep 17 00:00:00 2001 From: MCMXC <16797721+mcmxcdev@users.noreply.github.com> Date: Sun, 11 Feb 2024 19:15:20 +0530 Subject: more updates --- app/Middleware/Auth.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/Middleware/Auth.ts') 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'; import { AuthenticationException } from '@adonisjs/auth/build/standalone'; import * as jose from 'jose'; import { appKey } from '#config/app'; -import User from '#app/Models/User'; +import User from '#models/User'; /** * Auth middleware is meant to restrict un-authenticated access to a given route @@ -94,6 +94,7 @@ export default class AuthMiddleware { /** * Handle request */ + // eslint-disable-next-line consistent-return public async handle( { request, auth, response }: HttpContext, next: () => Promise, -- cgit v1.2.3-54-g00ecf