signInWithOAuth redirect to not working as expected
I'm trying to implement google & facebook login to my site, but when using the below code it just redirects me to the root
const logInWithSocialProvider = (provider: "google" | "facebook") => supabase.auth.signInWithOAuth({
provider: provider,
options: {
redirectTo: `${origin}${$path('/account/oauth/callback')}`,
}
});