Quickstart issues 405 response status with get request for api/auth/login

I am using the quickstart guild and having issues with 405 response status from get request for api/auth/login.

My your environment variables populated correctly in .env.local file.

AUTH0_SECRET='this is correct'
AUTH0_BASE_URL='http://localhost:3000'
AUTH0_ISSUER_BASE_URL='https://myworkofart.us.auth0.com'
AUTH0_CLIENT_ID='again removes'
AUTH0_CLIENT_SECRET='removed'

I put the app/api/auth/[auth0]/route.js and app/layout.js files in the correct folder

route.js

import { handleAuth } from '@auth0/nextjs-auth0';

export const GET = handleAuth();

layout.js

// app/layout.jsx
import { UserProvider } from '@auth0/nextjs-auth0/client';

export default function RootLayout({ children }) {
  return (
    <html lang="en">
    <UserProvider>
      <body>{children}</body>
    </UserProvider>
    </html>
  );
}

I made sure the domain and client ID are configured correctly triple checked.

page.js

export default function Login() {
  return <a href="/api/auth/login">Login</a>;
}

But I still get a 405 error and no login page as expected.

Hey there @jujbates welcome to the community!

Hmmm interesting, I’m not positive what the issue could be here - I definitely recommend pulling down the sample app directly and giving it a go if you haven’t already: