Skip to content

Error: req#logout requires a callback function #32

@FreePhoenix888

Description

@FreePhoenix888

Error

Error: req#logout requires a callback function
    at req.logout.req.logOut (/home/freephoenix888/Programming/google-photos/REST/PhotoFrame/node_modules/passport/lib/http/request.js:65:44)
    at file:///home/freephoenix888/Programming/google-photos/REST/PhotoFrame/app.js:204:7
    at Layer.handle [as handle_request] (/home/freephoenix888/Programming/google-photos/REST/PhotoFrame/node_modules/express/lib/router/layer.js:95:5)
    at next (/home/freephoenix888/Programming/google-photos/REST/PhotoFrame/node_modules/express/lib/router/route.js:144:13)
    at Route.dispatch (/home/freephoenix888/Programming/google-photos/REST/PhotoFrame/node_modules/express/lib/router/route.js:114:3)
    at Layer.handle [as handle_request] (/home/freephoenix888/Programming/google-photos/REST/PhotoFrame/node_modules/express/lib/router/layer.js:95:5)
    at /home/freephoenix888/Programming/google-photos/REST/PhotoFrame/node_modules/express/lib/router/index.js:284:15
    at Function.process_params (/home/freephoenix888/Programming/google-photos/REST/PhotoFrame/node_modules/express/lib/router/index.js:346:12)
    at next (/home/freephoenix888/Programming/google-photos/REST/PhotoFrame/node_modules/express/lib/router/index.js:280:10)
    at file:///home/freephoenix888/Programming/google-photos/REST/PhotoFrame/app.js:185:3

How to reproduce

  1. Do everything described here: https://github.com/googlesamples/google-photos/tree/main/REST/PhotoFrame#set-up
  2. Login
  3. Click "Disconnect" to logout
  4. See error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions