From c32d0911e8ffc7abf0973dad3abe73da49cd20e9 Mon Sep 17 00:00:00 2001 From: pilcrowOnPaper Date: Mon, 14 Oct 2024 08:26:25 +0900 Subject: [PATCH] fix code example --- pages/sessions/basic-api/drizzle-orm.md | 2 +- pages/sessions/basic-api/mysql.md | 2 +- pages/sessions/basic-api/postgresql.md | 2 +- pages/sessions/basic-api/prisma.md | 2 +- pages/sessions/basic-api/redis.md | 2 +- pages/sessions/basic-api/sqlite.md | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) 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()`.