From 633ffa8942f57195883f142e2c316610e55421d4 Mon Sep 17 00:00:00 2001 From: PATOOWORLD Date: Thu, 13 Jun 2024 16:06:54 -0700 Subject: [PATCH] Update and rename app/api/auth/[...nextauth].js to app/api/auth/[...nextauth]/route.ts change from js -> ts --- .../auth/{[...nextauth].js => [...nextauth]/route.ts} | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) rename app/api/auth/{[...nextauth].js => [...nextauth]/route.ts} (69%) diff --git a/app/api/auth/[...nextauth].js b/app/api/auth/[...nextauth]/route.ts similarity index 69% rename from app/api/auth/[...nextauth].js rename to app/api/auth/[...nextauth]/route.ts index c1cc81a..ac1aef1 100644 --- a/app/api/auth/[...nextauth].js +++ b/app/api/auth/[...nextauth]/route.ts @@ -1,10 +1,9 @@ import NextAuth from "next-auth" -import NextAuth from 'next-auth' -import AppleProvider from 'next-auth/providers/apple' -import FacebookProvider from 'next-auth/providers/facebook' -import GoogleProvider from 'next-auth/providers/google' -import EmailProvider from 'next-auth/providers/email' -import GithubProvider from 'next-auth/providers/github' +import AppleProvider from "next-auth/providers/apple" +import FacebookProvider from "next-auth/providers/facebook" +import GoogleProvider from "next-auth/providers/google" +import EmailProvider from "next-auth/providers/email" +import GithubProvider from "next-auth/providers/github" providers: [ // OAuth authentication providers...