No response for generic oauth api

I am using nestjs, prisma and nestjs, was implementing custom OAuth but when I hit the api I never get any response from the api /auth/sign-in/oauth2. Where do I start debugging?
2 Replies
The Untraceable
The Untraceable2mo ago
Are you manually fetching that endpoint?
const { data, error } = await authClient.signIn.oauth2({
providerId: "provider-id"
});
const { data, error } = await authClient.signIn.oauth2({
providerId: "provider-id"
});
That's how you're meant to login with oauth2, using the provider Id configured in the plugin
Harshith
HarshithOP2mo ago
yeah that's how I am also doing it, it then sends the request but no response after that the api is waiting forever

Did you find this page helpful?