From 574a98e58e06cda846dcdb5afc4fb13849f1c67d Mon Sep 17 00:00:00 2001 From: cfngc4594 Date: Wed, 12 Mar 2025 22:46:01 +0800 Subject: [PATCH] chore(auth): move auth.ts to src/lib directory --- src/app/api/auth/[...nextauth]/route.ts | 2 +- src/components/avatar-button.tsx | 2 +- src/{ => lib}/auth.ts | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename src/{ => lib}/auth.ts (100%) diff --git a/src/app/api/auth/[...nextauth]/route.ts b/src/app/api/auth/[...nextauth]/route.ts index 86c9f3d..c55a45e 100644 --- a/src/app/api/auth/[...nextauth]/route.ts +++ b/src/app/api/auth/[...nextauth]/route.ts @@ -1,3 +1,3 @@ -import { handlers } from "@/auth"; +import { handlers } from "@/lib/auth"; export const { GET, POST } = handlers; diff --git a/src/components/avatar-button.tsx b/src/components/avatar-button.tsx index 4213907..5e9c57a 100644 --- a/src/components/avatar-button.tsx +++ b/src/components/avatar-button.tsx @@ -17,7 +17,7 @@ import { DropdownMenuSeparator, DropdownMenuTrigger, } from "@/components/ui/dropdown-menu"; -import { auth, signIn, signOut } from "@/auth"; +import { auth, signIn, signOut } from "@/lib/auth"; import { Skeleton } from "@/components/ui/skeleton"; import { SettingsButton } from "@/components/settings-button"; diff --git a/src/auth.ts b/src/lib/auth.ts similarity index 100% rename from src/auth.ts rename to src/lib/auth.ts