FullstackReactCode icon indicating copy to clipboard operation
FullstackReactCode copied to clipboard

Where does the "proxy" param in GoogleStrategy come from?

Open popo63301 opened this issue 7 years ago • 1 comments

Hi!

I don't understand where have you found the proxy param that you've set in the GoogleStrategy.

https://github.com/StephenGrider/FullstackReactCode/blob/da3cbbc7e7bc0c35da0c151432360854f9c7ac03/server/services/passport.js#L24

Could you tell where it came from?

popo63301 avatar Sep 24 '18 21:09 popo63301

the proxy param is for passport to know where to go depending on if you are in prod or dev. So what it is saying is if you run into a proxy trust it and try to use that first.

This handles our production environment in where we want the data to go to heroku's node server to seralize and de-seralize instead of our own local node environment.

dhuang612 avatar May 28 '19 15:05 dhuang612