summaryrefslogtreecommitdiffstats
path: root/app/Middleware/Auth.ts
diff options
context:
space:
mode:
authorLibravatar MCMXC <16797721+mcmxcdev@users.noreply.github.com>2024-02-11 19:15:20 +0530
committerLibravatar Vijay A <vraravam@users.noreply.github.com>2024-02-13 06:59:44 +0530
commit8fec21d6bccfa778c14c1714d6444312e36fc3f1 (patch)
treecab910ad5048eece2d229648f2c17000ac86a44d /app/Middleware/Auth.ts
parentupdates (diff)
downloadferdium-server-03e8c2b08e08822bcd069ad482799eecf1ede777.tar.gz
ferdium-server-03e8c2b08e08822bcd069ad482799eecf1ede777.tar.zst
ferdium-server-03e8c2b08e08822bcd069ad482799eecf1ede777.zip
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>,