Hi guys,
I have a Sign-In flow in my app created using the new Rails 8 authentication generators.
Everything works fine in the Hotwire Native app for the email/password login, but now I’m implementing Social Login with Google and since I need to use { data: { turbo: false }} in the button, the Hotwire Native does not catch the action, thus it does not redirect to the Google Sign In flow.
I did not want to create a native screen for this purpose, so I was wondering if any of you guys already had this challenge.
Thanks in advance!
1 Like
@jeduardo824 I think we’re on the same page. I ended up creating a native screen, kinda 8 months ago, but now I’m wondering if the Google Sign In couldn’t be via web too.
The main issue with me is the OAuth redirect back to the URL from Google, which makes the app be loaded in another browser’s tab instead of redirecting to the Native App.
Did you make it?
Kind regards,
Wondering if anyone else has done this as well. I found this issue from a while back but not much elaboration: [Question] How to implement Google Sign In with turbo-android · Issue #196 · hotwired/turbo-android · GitHub
I guess if you’ve managed to go out to the browser, the main thing is figuring out how to get the redirect back into your own app rather than the web browser.
How did you implement the native screen? Was it following something like this? Integrating Google Sign-In into your iOS or macOS app | Authentication | Google for Developers. I’m wondering how that would connect back to getting logged in in the webview. Would appreciate any pointers. Thanks!