logout functionality hopefully
This commit is contained in:
parent
16651fce27
commit
a967a298cb
7 changed files with 62 additions and 14 deletions
|
@ -168,7 +168,6 @@ export function initAuth(router: express.Router) {
|
|||
export function apiTokenAuthHandlers() {
|
||||
return [
|
||||
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
Add a link
Reference in a new issue