cuongdevjs / reactjs-social-login

Group Hook ReactJS components for login social network
https://react-social-login.netlify.app
MIT License
168 stars 75 forks source link

CORS error on Google login #155

Open kzulis opened 9 months ago

kzulis commented 9 months ago

It seems that the cors.sh (https://cors.bridged.cc/) account used in npm package has reached usage limit. Is this CORS proxy really necessary? Maybe we can have options to disable it or specify our own key?

Screenshot 2023-11-29 at 22 22 07
VanThanh258 commented 9 months ago

Same error

cuongdevjs commented 9 months ago

please pass isGetOnlyToken = true as a prop

lauriskuznecovs commented 9 months ago

Passing isGetOnlyToken=true does not solve the issue.

rockerleo commented 9 months ago

having the same issue and prop isGetOnlyToken=true not works

Rahul1726260 commented 9 months ago

having same issue cors error , how to resolve it , i need the profile data on the frontend side only

Anan7Codes commented 9 months ago

Same issue again. Request is being sent to this url "https://cors.bridged.cc/https://www.googleapis.com/oauth2/v3/userinfo?alt=json".

lauriskuznecovs commented 9 months ago

I overcame this issue by using another npm package - @react-oauth/google. It does not have this nasty 3rd party CORS service in the middle and it WORKS.

cuongdevjs commented 9 months ago

Unfortunately, the key used to pass cors has exceeded quota, but you can ignore this by adding isGetOnlyToken={true} prop, it will ignore the call get user's info function, I recommend the user's info should called by the server-side to avoid this problem.