Implementing OAuth in Hotwire Native apps with Bridge Components — Mike Dalton
06-Feb-2026 416
OAuth is a common technique for registering and authenticating users on web and mobile apps. Many interactions in a Hotwire-based Rails app work without requiring native code but that’s not the case for OAuth.
Hotwire Native uses embedded web views to navigate the application. This works well for most web pages but is considered insecure by Google and other OAuth providers.1
…[Google] introduced a new secure browser policy prohibiting Google OAuth requests in embedded browser libraries commonly referred to as embedded webviews. All embedded webviews will be blocked…1
If we try to use a web view, Google tells us they’ve blocked this user agent.
Implementing OAuth in Hotwire Native apps with Bridge Components — Mike Dalton #ruby #rubydeveloper #rubyonrails #Implementing #OAuth #Hotwire #Native #Bridge #Components #Dalton #hotwire https://rubyonrails.ba/link/implementing-oauth-in-hotwire-native-apps-with-bridge-components-mike-dalton