Skip to content

Commit ea27cb7

Browse files
authored
chore(fix): fix incorrect type name
1 parent 1efd670 commit ea27cb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/authentication/login.handler.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import AdminJS from "adminjs";
22
import { Router } from "express";
33
import {
4-
AuthContext,
4+
AuthenticationContext,
55
AuthenticationMaxRetriesOptions,
66
AuthenticationOptions,
77
} from "../types";
@@ -90,7 +90,7 @@ export const withLogin = (
9090
email: string;
9191
password: string;
9292
};
93-
const context: AuthContext = { req, res };
93+
const context: AuthenticationContext = { req, res };
9494
const adminUser = await auth.authenticate(email, password, context);
9595
if (adminUser) {
9696
req.session.adminUser = adminUser;

0 commit comments

Comments
 (0)