Skip to content

Commit

Permalink
chore: fix readme Example (#715)
Browse files Browse the repository at this point in the history
the `getSessionData()` function assigns the session data to the `session` variable, but doesn't return anything, making the example incorrect.
  • Loading branch information
abdoufma committed Jun 14, 2024
1 parent 303d17d commit 2e7a553
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ import { cookies } from 'next/headers';
import { getIronSession } from 'iron-session';

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

function Profile() {
Expand Down

0 comments on commit 2e7a553

Please sign in to comment.