I'm new to Tauri and using it to build a desktop app for our web application. We use Google OAuth for authentication. While in development everything is fine as the origin is set as localhost but after generating the build it's changed to tauri.localhost. I tried adding it to the allowed origins list but it's showing as invalid. Can anyone help me, with this, or at least point me in the right direction please?
#https://tauri.localhost : The given origin is not allowed [Google OAuth]
2 messages · Page 1 of 1 (latest)
Check out https://github.com/FabianLars/tauri-plugin-oauth. The problem you're encountering is that you need a server to redirect to because Google doesn't like deep-linking. When you build a Tauri app, the server isn't available because it isn't communicating using the network. The server Tauri uses in dev is for hot reloads and not intended for production use.