Betterauth GitHub login not reliably redirecting to github.

I have everything set up like the docs tell you to. I have a button with a onclick calling the github signin.
This, for some reason, doesnt reliably redirect to github tho.
Sometimes it works perfectly, sometimes all it does is reload the page with a ? at the end, nomatter how hard I try.
Any Ideas on what this might be?
Solution
the button is submitting the form
Was this page helpful?