13 Replies Latest reply: Mar 8, 2016 2:42 AM by Markus Anttila RSS

    qlik-auth.js

    Markus Anttila

      Hi guys,

       

      Im using the qlik-auth.js in my custom authentication module. Everything works great except for deleting the session.

      So when a user clicks on logout the application directs him to /logout route where the deleteSession(req, res, profile, options) is fired


      However i am getting the following error and haven't found a way to fix it:

       

      No matching endpoint found

      ^

      SyntaxError: Unexpected token N

          at Object.parse (native)

          at IncomingMessage.<anonymous> (C:\****

      project\node_modules\qlik-auth\index.js:307:35)

          at emitOne (events.js:77:13)

          at IncomingMessage.emit (events.js:169:7)

          at IncomingMessage.Readable.read (_stream_readable.js:360:10)

          at flow (_stream_readable.js:743:26)

          at resume_ (_stream_readable.js:723:3)

          at doNTCallback2 (node.js:439:9)

          at process._tickCallback (node.js:353:17)

      [nodemon] app crashed - waiting for file changes before starting...

       

      Thanks for any help.