Skip to content

Error: req#logout requires a callback function #510

@Maxino22

Description

@Maxino22

What happened?

When trying to logout of exloperer It crushed and threw an error

[2024-11-12T06:18:05.739] [ERROR] main - <<<<<<<<<<<<<<<<<<<<<<<<<< Explorer Error >>>>>>>>>>>>>>>>>>>>>
[2024-11-12T06:18:05.739] [ERROR] main - Error: req#logout requires a callback function
    at IncomingMessage.req.logout.req.logOut (/opt/explorer/node_modules/passport/lib/http/request.js:65:44)
    at /opt/explorer/app/rest/authroutes.js:67:17
    at Generator.next (<anonymous>)
    at /opt/explorer/app/rest/authroutes.js:8:71
    at new Promise (<anonymous>)
    at __awaiter (/opt/explorer/app/rest/authroutes.js:4:12)
    at /opt/explorer/app/rest/authroutes.js:65:46
    at Layer.handle [as handle_request] (/opt/explorer/node_modules/express/lib/router/layer.js:95:5)
    at next (/opt/explorer/node_modules/express/lib/router/route.js:144:13)
    at Route.dispatch (/opt/explorer/node_modules/express/lib/router/route.js:114:3
    ```


### What did you expect to happen?

To sign out of the exlorer

### How can we reproduce it (as minimally and precisely as possible)?

Create explorer and try signing out

### Anything else we need to know?

_No response_

### OS version

<details>

```console
# On Linux:
$ cat /etc/os-release
# paste output here
$ uname -a
# paste output here

# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions