Skip to content

Commit

Permalink
Update README.md (#648)
Browse files Browse the repository at this point in the history
  • Loading branch information
virginus01 authored Nov 29, 2023
1 parent 0088a99 commit 16074d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@ export function POST() {
import { cookies } from 'next/headers';
import { getIronSession } from 'iron-session';

async function getIronSession() {
async function getIronSessionData() {
const session = await getIronSession(cookies(), { password: "...", cookieName: "..." });
}

function Profile() {
const session = await getIronSession();
const session = await getIronSessionData();

return <div>{session.username}</div>;
}
Expand Down

0 comments on commit 16074d8

Please sign in to comment.