Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit cbde00c

Browse files
fix: auth authOptions
1 parent bb23423 commit cbde00c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎components/auth-status.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import { getServerSession } from "next-auth/next";
2+
import { authOptions } from "@/app/api/auth/[...nextauth]/route";
23

34
export default async function AuthStatus() {
4-
const session = await getServerSession();
5+
const session = await getServerSession(authOptions);
56
return (
67
<div className="absolute top-5 w-full flex justify-center items-center">
78
{session && (

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /