Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
pilcrowonpaper committed Oct 7, 2024
1 parent 7ac7ffb commit 4d9d27e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pages/sessions/cookies/nextjs.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,14 +168,14 @@ Use `getCurrentSession()` to get the current user in server components, server a
import { redirect } from "next/navigation";

async function Page() {
const { user } = await getUser();
const { user } = await getCurrentUser();
if (user === null) {
return redirect("/login");
}

async function action() {
"use server";
const { user } = await getUser();
const { user } = await getCurrentUser();
if (user === null) {
return redirect("/login");
}
Expand Down

0 comments on commit 4d9d27e

Please sign in to comment.