From a44495a99a36f353fadadbd037a038023cab7f90 Mon Sep 17 00:00:00 2001 From: pilcrowOnPaper Date: Mon, 21 Oct 2024 10:18:10 +0900 Subject: [PATCH] add links --- pages/sessions/cookies/astro.md | 2 +- pages/sessions/cookies/index.md | 2 +- pages/sessions/cookies/nextjs.md | 2 +- pages/sessions/cookies/sveltekit.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/sessions/cookies/astro.md b/pages/sessions/cookies/astro.md index 7fe88a0b0..ff9d9865b 100644 --- a/pages/sessions/cookies/astro.md +++ b/pages/sessions/cookies/astro.md @@ -60,7 +60,7 @@ export function deleteSessionTokenCookie(context: APIContext): void { ## Session validation -Sessions can be validated by getting the cookie and using the `validateSessionToken()` function we created. If the session is invalid, delete the session cookie. Importantly, we recommend setting a new session cookie after validation to persist the cookie for an extended time. +Session tokens can be validated using the `validateSessionToken()` function from the [Basic session API](/sessions/basic-api/) page. If the session is invalid, delete the session cookie. Importantly, we recommend setting a new session cookie after validation to persist the cookie for an extended time. ```ts import { diff --git a/pages/sessions/cookies/index.md b/pages/sessions/cookies/index.md index 61d9f5ec6..f1e5a57b3 100644 --- a/pages/sessions/cookies/index.md +++ b/pages/sessions/cookies/index.md @@ -82,7 +82,7 @@ export function deleteSessionTokenCookie(response: HTTPResponse): void { ## Session validation -Sessions can be validated by getting the cookie and using the `validateSession()` function we created. If the session is invalid, delete the session cookie. Importantly, we recommend setting a new session cookie after validation to persist the cookie for an extended time. +Session tokens can be validated using the `validateSessionToken()` function from the [Basic session API](/sessions/basic-api/) page. If the session is invalid, delete the session cookie. Importantly, we recommend setting a new session cookie after validation to persist the cookie for an extended time. ```ts import { diff --git a/pages/sessions/cookies/nextjs.md b/pages/sessions/cookies/nextjs.md index f754e5879..3b6025533 100644 --- a/pages/sessions/cookies/nextjs.md +++ b/pages/sessions/cookies/nextjs.md @@ -119,7 +119,7 @@ export async function middleware(request: NextRequest): Promise { ## Session validation -Sessions can be validated by getting the cookie and using the `validateSessionToken()` function we created. +Session tokens can be validated using the `validateSessionToken()` function from the [Basic session API](/sessions/basic-api/) page. ```ts import { validateSessionToken } from "$lib/server/session"; diff --git a/pages/sessions/cookies/sveltekit.md b/pages/sessions/cookies/sveltekit.md index eeb370277..50ff7da9c 100644 --- a/pages/sessions/cookies/sveltekit.md +++ b/pages/sessions/cookies/sveltekit.md @@ -48,7 +48,7 @@ export function deleteSessionTokenCookie(event: RequestEvent): void { ## Session validation -Sessions can be validated by getting the cookie and using the `validateSession()` function we created. If the session is invalid, delete the session cookie. Importantly, we recommend setting a new session cookie after validation to persist the cookie for an extended time. +Session tokens can be validated using the `validateSessionToken()` function from the [Basic session API](/sessions/basic-api/) page. If the session is invalid, delete the session cookie. Importantly, we recommend setting a new session cookie after validation to persist the cookie for an extended time. ```ts // +page.server.ts