Skip to content

Commit

Permalink
add links
Browse files Browse the repository at this point in the history
  • Loading branch information
pilcrowonpaper committed Oct 21, 2024
1 parent 3a0f545 commit a44495a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pages/sessions/cookies/astro.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion pages/sessions/cookies/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion pages/sessions/cookies/nextjs.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export async function middleware(request: NextRequest): Promise<NextResponse> {

## 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";
Expand Down
2 changes: 1 addition & 1 deletion pages/sessions/cookies/sveltekit.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a44495a

Please sign in to comment.