diff --git a/pages/sessions/basic-api/drizzle-orm.md b/pages/sessions/basic-api/drizzle-orm.md index 1a388fa..c484cdb 100644 --- a/pages/sessions/basic-api/drizzle-orm.md +++ b/pages/sessions/basic-api/drizzle-orm.md @@ -309,7 +309,7 @@ import { generateSessionToken, createSession } from "./session.js"; const token = generateSessionToken(); const session = createSession(token, userId); -setSessionTokenCookie(session); +setSessionTokenCookie(token); ``` Validate a user-provided token with `validateSessionToken()`. diff --git a/pages/sessions/basic-api/mysql.md b/pages/sessions/basic-api/mysql.md index 255cdaa..68c12ef 100644 --- a/pages/sessions/basic-api/mysql.md +++ b/pages/sessions/basic-api/mysql.md @@ -271,7 +271,7 @@ import { generateSessionToken, createSession } from "./session.js"; const token = generateSessionToken(); const session = createSession(token, userId); -setSessionTokenCookie(session); +setSessionTokenCookie(token); ``` Validate a user-provided token with `validateSessionToken()`. diff --git a/pages/sessions/basic-api/postgresql.md b/pages/sessions/basic-api/postgresql.md index ba92892..1d35bc2 100644 --- a/pages/sessions/basic-api/postgresql.md +++ b/pages/sessions/basic-api/postgresql.md @@ -271,7 +271,7 @@ import { generateSessionToken, createSession } from "./session.js"; const token = generateSessionToken(); const session = createSession(token, userId); -setSessionTokenCookie(session); +setSessionTokenCookie(token); ``` Validate a user-provided token with `validateSessionToken()`. diff --git a/pages/sessions/basic-api/prisma.md b/pages/sessions/basic-api/prisma.md index f181c61..b2cb503 100644 --- a/pages/sessions/basic-api/prisma.md +++ b/pages/sessions/basic-api/prisma.md @@ -249,7 +249,7 @@ import { generateSessionToken, createSession } from "./session.js"; const token = generateSessionToken(); const session = createSession(token, userId); -setSessionTokenCookie(session); +setSessionTokenCookie(token); ``` Validate a user-provided token with `validateSessionToken()`. diff --git a/pages/sessions/basic-api/redis.md b/pages/sessions/basic-api/redis.md index 2a107dc..4736ac8 100644 --- a/pages/sessions/basic-api/redis.md +++ b/pages/sessions/basic-api/redis.md @@ -242,7 +242,7 @@ import { generateSessionToken, createSession } from "./session.js"; const token = generateSessionToken(); const session = createSession(token, userId); -setSessionTokenCookie(session); +setSessionTokenCookie(token); ``` Validate a user-provided token with `validateSessionToken()`. diff --git a/pages/sessions/basic-api/sqlite.md b/pages/sessions/basic-api/sqlite.md index 938992a..1574b38 100644 --- a/pages/sessions/basic-api/sqlite.md +++ b/pages/sessions/basic-api/sqlite.md @@ -271,7 +271,7 @@ import { generateSessionToken, createSession } from "./session.js"; const token = generateSessionToken(); const session = createSession(token, userId); -setSessionTokenCookie(session); +setSessionTokenCookie(token); ``` Validate a user-provided token with `validateSessionToken()`.