tapascript / learn-next-auth

Learn Next-Auth with plenty of examples
83 stars 14 forks source link

Got message error 404 api/auth/callback/google #1

Open nguyenvuhoang opened 4 months ago

nguyenvuhoang commented 4 months ago

Hello Sir.

Do you know why i got this message?

No webpage was found for the web address: http://localhost:3000/api/auth/callback/google/?code=4%2F0AdLIrYey9nr3zkoPAgFqhfGUruBrzPwfiojwzASyQvh1azUWLCeqdh0VUlX1m19mq2d-dA&scope=email%20profile%20openid%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email&authuser=1&prompt=consent

atapas commented 4 months ago

@nguyenvuhoang Some issue with your OAUTH configuration.

Please recreate a configuration and make sure correctly coying both the secrets.. also do not for get the Auth secrets in .env.

Good Luck.

Sodabeh-Taherpanah commented 3 months ago

export { GET, POST } from "@/auth";

I created Auth , But I took this error : " Module not found: Can't resolve '@/auth'"

Satish-Kumar-sah commented 3 months ago

Go to console.google and change the redirect uri to this http://localhost:3000/api/auth/callback/google

atapas commented 2 months ago

export { GET, POST } from "@/auth";

I created Auth , But I took this error : " Module not found: Can't resolve '@/auth'"

Please change the redirect URL, it should work accordingly.