OAuth not redirecting to provider callback url

i was implementing google Oauth from server action like this
export const signInGoogleAction = async () => {

const result = await auth.api.signInSocial({
body:{
provider:'google',
callbackURL:'/',
}
});

console.log(result)
};

i suppose it should automatically redirect but it doesnt. the console.log(result) prints an object with key url which has the redirect url and a boolean redirect key set to true. what is the problem here

ps. i also tried through authClient.same result
Was this page helpful?