Skip to content

Commit

Permalink
Fix paths for authOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
RobVermeer committed Dec 29, 2023
1 parent a00cb4a commit 836ebc3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/[locale]/admin/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Separator } from "@/components/ui/separator"
import { getStats } from "@/lib/stats"
import { BookUser, Group, List, Users } from "lucide-react"
import { getServerSession } from "next-auth"
import { authOptions } from "../api/auth/[...nextauth]/route"
import { authOptions } from "@/lib/nextAuth"
import { redirect } from "next/navigation"

export default async function AdminDashboardPage() {
Expand Down
2 changes: 1 addition & 1 deletion src/app/[locale]/login/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { NextIntlClientProvider } from "next-intl"
import { pickMessages } from "@/utils/pick"
import { getMessages } from "next-intl/server"
import { LoginForm } from "@/components/LoginForm"
import { authOptions } from "../api/auth/[...nextauth]/route"
import { authOptions } from "@/lib/nextAuth"

interface Props {
searchParams: { callbackUrl?: string }
Expand Down
2 changes: 1 addition & 1 deletion src/app/[locale]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import Link from "next/link"
import { getTranslations } from "next-intl/server"
import { WishlistIcon } from "@/components/WishlistIcon"
import { getServerSession } from "next-auth"
import { authOptions } from "./api/auth/[...nextauth]/route"
import { authOptions } from "@/lib/nextAuth"
import { redirect } from "next/navigation"

interface Props {
Expand Down

0 comments on commit 836ebc3

Please sign in to comment.