summaryrefslogtreecommitdiffstats
path: root/app/Middleware/Auth.ts
diff options
context:
space:
mode:
Diffstat (limited to 'app/Middleware/Auth.ts')
-rw-r--r--app/Middleware/Auth.ts3
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';
3import { AuthenticationException } from '@adonisjs/auth/build/standalone'; 3import { AuthenticationException } from '@adonisjs/auth/build/standalone';
4import * as jose from 'jose'; 4import * as jose from 'jose';
5import { appKey } from '#config/app'; 5import { appKey } from '#config/app';
6import User from '#app/Models/User'; 6import 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>,