Google O Auth

Hello, hen i try signIn with social it dont redirect me to the google.. Why ?
async function LoginOAuth(provider: "google" | "discord") {
console.log(provider);
const data = await authClient.signIn.social({
provider,
});

console.log(data);
}
async function LoginOAuth(provider: "google" | "discord") {
console.log(provider);
const data = await authClient.signIn.social({
provider,
});

console.log(data);
}
It just return HTML
5 Replies
bux1k
bux1kOP2mo ago
@Alex Yang Can u maybe try help ?
Alex Yang
Alex Yang2mo ago
can you check your network qequest on browser. And also the backend log
bux1k
bux1kOP2mo ago
http://localhost:3000/api/auth/sign-in/social?currentURL=http%3A%2F%2Flocalhost%3A3000%2Fsignin Request Method POST Status Code 307 Temporary Redirect Remote Address [::1]:3000 Referrer Policy strict-origin-when-cross-origin
nikatune
nikatune2mo ago
provider:, wdym
bux1k
bux1kOP2mo ago
Yeah that was missclicked by mistake but it was fixed in my code.

Did you find this page helpful?