Cross domain auth with social login

I have a bit of a weird setup where I require a static sveltekit application to have auth. I use convex for the backend, and I'm able to log in with username/password, after changing cookie settings to allow cross domain auth. Basically my authclient has the baseurl set to https://xxxxx-xxxxx-xxx.convex.site (better-auth is running on convex), and i have sameSite set to none. The issue I run into is when I'm using a social provider (I'm using log in with github at the moment). I have to set the redirect url to be the convex.site one, but it doesn't redirect back to the static site. Is there any way I could redirect back to the static site? Preferably the url it redirects back to can be dynamic.
Was this page helpful?