jaredhanson / passport

Simple, unobtrusive authentication for Node.js.
https://www.passportjs.org?utm_source=github&utm_medium=referral&utm_campaign=passport&utm_content=about
MIT License
22.68k stars 1.24k forks source link

Infinite Redirects with Facebook Authentication #241

Open blackcoat opened 10 years ago

blackcoat commented 10 years ago

The Facebook authentication example from the documentation results in an infinite loop of HTTP redirects, as illustrated by this sample code.

The /auth/facebook route sends us to Facebook to login, and redirects us back to the /auth/facebook/callback route when completed. However, the example handler for this endpoint redirects us back to Facebook again, kicking off an infinite loop of redirects.

Guizzu commented 4 years ago

Hello @blackcoat, were you able to solve this issue in any way?