Back

Does OAuth2 not work if I'm running ReactJS on localhost?

  • 0
  • React Native
  • Web
  • Auth
  • Cloud
Your Name Here
24 Dec, 2024, 15:49

I can't seem to get OAuth to work. I'm running ReactJS and after logging in with google it sends me back without any cookies

TL;DR
OAuth2 does not work on localhost for ReactJS developers due to security restrictions. Try setting up a proxy server or deploy your application to a live server for OAuth2 to function properly.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more