DEV Community

Discussion on: Dynamic Auth Redirects With PassportJS

Collapse
 
koribrus profile image
Kori Brus

Thanks Daniel. This is the solution I need, but I'm missing a step somewhere.

My req.query property from within /auth is returning an empty object. Likewise, returnTo is undefined. How should I be getting this data into the flow?

I'm using the spotify strategy with the a direct call to the /auth route from a React frontend.