0

I have the weirdest bug I have ever seen. I recently upgraded my config package and my Google strategy started failing.

I used the debugger to troubleshoot this error:

enter image description here

In the debugger I got to the line were the internal authorizationURL is supposed to be set:

enter image description here

I even set a watch on it ( it is a property on the options object )

enter image description here

Here is a closeup of the line that does nothing, I call it the ghost line:

enter image description here

I stepped through the code line by line and that particular line does nothing for some reason.

For a reality check I put it in a fiddle / replit:

https://repl.it/@johnmorsey/OpenQueasyHashmap

I have no idea how updating my config package has caused this internal error in Passport - Google Strategy.

In my mind the authorizationURL is clearly an internal property that is being set though "ghosting" in the debugger. But in reality my app is crashing b.c. of the error.

  • What is `options` because it doesn't seem to be a simple object ? The described effect can be caused by something other then just that line not being executed, for example https://repl.it/repls/LumpyEthicalScandisk – Titus Jun 28 '19 at 07:16
  • Well ... yes ... need to ask the authors of node-config why they are returning this "monster" object to break Passport-Google code. –  Jun 28 '19 at 16:54
  • Ran out of tags but this object came from node-config package passed to Passport-Google package. –  Jun 28 '19 at 16:54

0 Answers0