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.
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.