We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1efd670 commit ea27cb7Copy full SHA for ea27cb7
src/authentication/login.handler.ts
@@ -1,7 +1,7 @@
1
import AdminJS from "adminjs";
2
import { Router } from "express";
3
import {
4
- AuthContext,
+ AuthenticationContext,
5
AuthenticationMaxRetriesOptions,
6
AuthenticationOptions,
7
} from "../types";
@@ -90,7 +90,7 @@ export const withLogin = (
90
email: string;
91
password: string;
92
};
93
- const context: AuthContext = { req, res };
+ const context: AuthenticationContext = { req, res };
94
const adminUser = await auth.authenticate(email, password, context);
95
if (adminUser) {
96
req.session.adminUser = adminUser;
0 commit comments