mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-14 21:31:50 +00:00
fix: api key verification/dashboard login
This commit is contained in:
parent
ee3ef7c77f
commit
be40bbae9c
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,7 @@ export function initAuth(app: express.Express) {
|
|||
|
||||
export function apiTokenAuthHandlers() {
|
||||
return [
|
||||
passport.authenticate("api-token", { failWithError: true }),
|
||||
passport.authenticate("api-token", { failWithError: true, session: false }),
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
(err, req: Request, res: Response, next) => {
|
||||
return res.status(401).json({ error: err.message });
|
||||
|
|
Loading…
Add table
Reference in a new issue