Back to all

Login through Google option is failing

I am unable to sign in through Google on my app Finflash App built using Loveable and wrapped through Median. The link handling https://accounts.google.com, https://oauth.lovable.app, https://www.finflashapp.com/native-signin*, https://www.finflashapp.com/~oauth* are all marked "external", pages to trigger rule are all marked as "Multiple Pages" and include subdomains are marked as "Yes". When I asked loveable support team about the issue, they answered as follow," I did as they said but the login still failing. I am setting the error screen which says "Sign in complete, please return to finflash and try again" this message is occurring in the safari browser itself.

Hi Mantesh,


Thanks for the detailed screenshots, and sorry this is still standing between you and a working Google sign-in. We checked on our side: your sign-in attempts do reach us, and they are being stopped right at the very last step. Nothing is misconfigured in your Lovable backend, and there is no setting we need to change or enable for you.


Here is what goes wrong, in plain terms. When sign-in starts, we hand a small one-time security token to the browser that started it, and when Google sends you back, that same token has to come back from that same browser. In your setup the sign-in starts in Safari, but the return trip is being handled inside the app's own built-in browser window, so the token never comes back and we stop the sign-in. That is why you see "State verification failed" and "Sign-in incomplete".


The change sits on the Median side, in the link-handling rules you shared. Three of them are currently set to "Internal", which forces those pages into the app's own window: the rule for accounts.google.com, the rule for oauth.lovable.app, and the rule for your own /native-signin page. If you set those so the whole sign-in journey stays in the browser it started in, rather than being pulled back into the app's internal window, sign-in should be able to complete. Median's own documentation or support can confirm the exact option to use, since it is their setting."