Authentication using google and facebook very slow

992 Views Asked by At

I use django social auth for authentication in my website.I use the providers google-oauth2, facebook and github.The google and facebook login is boringly slow, whereas github login works perfect.

URL : dyuthi.in

The google and facebook login does not fail,but however, completes after atleast 30 seconds.The page waits for the redirect from authentication server to my site.

2

There are 2 best solutions below

1
On

I have an integration right now with both Google OAuth 2 login and Facebook basic login, and neither of them is terribly fast, but they usually take less than 5 seconds, including all the back-and-forth. Can you offer more details?

2
On

Mine all of sudden is now slow. It's used to take under 3 sec... it's now taking 20+ sec at the most. And for Facebook... it's not even validating anymore. Cannot getUser(). It always returns 0.