Configuring Google Provider in Mastering Next.js 13 with TypeScript

Followed along the video, performed all the steps. And after clicking on the Login link I can see the
“Sign in with Google” on the page. But when click on the “Sign in with Google”, the browser displays the following message

This site can’t provide a secure connection.
localhost sent an invalid response.

Any help regarding that please?


I have figured it out. I had to remove ‘s’ from the https of NEXTAUTH_URL.

It should be

instead of

I keep getting the not found page when i try to signin: http://localhost:3000/api/auth/signin

pls help