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_CLIENT_ID='again removes'

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


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

export const GET = handleAuth();


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

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

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


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: