GoogleProvider in next.js course not redirecting to login page

When i click loging I’m sent to the sign in with google page at http://localhost:3000/api/auth/signin

When I click on the google logo I’m redirected to a blank page on http://localhost:3000/api/auth/signin/google

Here’s my route file:

import NextAuth from “next-auth”;
import GoogleProvider from “next-auth/providers/google”;

const handler = NextAuth({
providers: [
GoogleProvider({
clientId: process.env.GOOGLE_CLIENT_ID!,
clientSecret: process.env.GOOGLE_CLIENT_SECRET!,
}),
],
});

export { handler as GET, handler as Post };

Anyone know what I’ve done wrong?

POST was misspelled :slight_smile: