After a successful Oauth flow, Twitch seems to be redirecting to https://id.twitch.tv (no extra path or query params) and not the root path of my app as it should.
This happens only on 2 of the 3 sign in buttons. One of them redirects ok.
After a few hours of debugging, I can’t find why 2 out of the 3 buttons are triggering this failed redirect, since they generate exactly the same Oauth URL:
Thanks @BarryCarlyon. Yeah I figured the issue would be on my side for sure.
Think I tracked it down - apparently some confusion with the ORIGIN header and the ruby omniauth library. I was getting a Twitch URL in the wrong place.