MomenSherif / react-oauth

Google OAuth2 using the new Google Identity Services SDK for React 🚀
https://www.npmjs.com/package/@react-oauth/google
MIT License
1.11k stars 139 forks source link

Ionic/Capacitor Support? #262

Open rayjackson13 opened 1 year ago

rayjackson13 commented 1 year ago

Hi @MomenSherif ! Thank you for this amazing package!

We have a website built with Next.js and an app running on Ionic/Capacitor from the same repo. We implemented Sign in with Google button using this package, and it works like a charm on the website.

Unfortunately, with Ionic builds it's a little bit different - nothing happens after clicking the button. Neither onSuccess nor onError is being triggered. Do you know what might be causing this? Is there any chance we can make it work for Ionic?

React v16.8 Ionic v5.4.1 Capacitor v2.1.0

MomenSherif commented 1 year ago

Hey,

the package is just a wrapper around google native JS SDK, it should be used to work on the browser. IDK how to make it work with ionic for mobile apps (you will need different implementation)

grzegorzCieslik95 commented 1 week ago

Hi, @rayjackson13. Did you find any solution to handle this login flow on capacitor app?