passport.authenticate() with custom query string param? #839
Unanswered
GeoffreyPlitt
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am successfully authenticating with e.g.
router.get("/auth/", passport.authenticate("spotify", {}))
. But I'd like to send a custom param in the query string (e.g. the users timezone).The docs say:
In this example, note that authenticate() is called from within the route handler, rather than being used as route middleware. This gives the callback access to the req and res objects through closure
But that looks to be for writing my own strategy. I want to use the spotify strategy, but get access to that query string var from the original auth route.
Is this possible?
Beta Was this translation helpful? Give feedback.
All reactions