Currently, I am following an educational video tutorial on Next Auth V5.
Despite being a beginner in coding, I am doing my best to keep up. I am currently stuck at 2 hours, 9 minutes, and 45 seconds into the 8-hour-long video.
The issue arises during the Middleware & Login section where I am unable to access "localhost:3000//api/auth/providers".
//route.ts
import { handlers } from "@/auth";
export const { GET, POST } = handlers;
//./auth.ts:
import NextAuth from "next-auth";
import GitHub from "next-auth/providers/github";
import Google from "next-auth/providers/google";
export const { auth, handlers, signIn, signOut } = NextAuth({
providers: [GitHub, Google],
});
//app/api/auth/[...nextauth]/route.ts:
import { handlers } from "@/auth"
export const { GET, POST } = handlers
I haven't attempted anything yet as I find it quite overwhelming with my current level of understanding.