Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
pilcrowonpaper committed Oct 12, 2024
1 parent 917a03f commit 3dbb314
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions pages/sessions/basic-api/drizzle-orm.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ The session ID will be SHA-256 hash of the token. We'll set the expiration to 30
```ts
import { db, userTable, sessionTable } from "./db.js";
import { eq } from "drizzle-orm";
import { encodeBase32, encodeHexLowerCase } from "@oslojs/encoding";
import { encodeBase32LowerCaseNoPadding, encodeHexLowerCase } from "@oslojs/encoding";
import { sha256 } from "@oslojs/crypto/sha2";

// ...
Expand Down Expand Up @@ -190,7 +190,7 @@ For convenience, we'll return both the session and user object tied to the sessi
```ts
import { db, userTable, sessionTable } from "./db.js";
import { eq } from "drizzle-orm";
import { encodeBase32, encodeHexLowerCase } from "@oslojs/encoding";
import { encodeBase32LowerCaseNoPadding, encodeHexLowerCase } from "@oslojs/encoding";
import { sha256 } from "@oslojs/crypto/sha2";

// ...
Expand Down
6 changes: 3 additions & 3 deletions pages/sessions/basic-api/mysql.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ The session ID will be SHA-256 hash of the token. We'll set the expiration to 30

```ts
import { db } from "./db.js";
import { encodeBase32, encodeHexLowerCase } from "@oslojs/encoding";
import { encodeBase32LowerCaseNoPadding, encodeHexLowerCase } from "@oslojs/encoding";
import { sha256 } from "@oslojs/crypto/sha2";

// ...
Expand Down Expand Up @@ -131,7 +131,7 @@ For convenience, we'll return both the session and user object tied to the sessi

```ts
import { db } from "./db.js";
import { encodeBase32, encodeHexLowerCase } from "@oslojs/encoding";
import { encodeBase32LowerCaseNoPadding, encodeHexLowerCase } from "@oslojs/encoding";
import { sha256 } from "@oslojs/crypto/sha2";

// ...
Expand Down Expand Up @@ -185,7 +185,7 @@ Here's the full code:

```ts
import { db } from "./db.js";
import { encodeBase32, encodeBase32LowerCaseNoPadding } from "@oslojs/encoding";
import { encodeBase32LowerCaseNoPadding, encodeBase32LowerCaseNoPadding } from "@oslojs/encoding";
import { sha256 } from "@oslojs/crypto/sha2";

export function generateSessionToken(): string {
Expand Down
6 changes: 3 additions & 3 deletions pages/sessions/basic-api/postgresql.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ The session ID will be SHA-256 hash of the token. We'll set the expiration to 30

```ts
import { db } from "./db.js";
import { encodeBase32, encodeHexLowerCase } from "@oslojs/encoding";
import { encodeBase32LowerCaseNoPadding, encodeHexLowerCase } from "@oslojs/encoding";
import { sha256 } from "@oslojs/crypto/sha2";

// ...
Expand Down Expand Up @@ -131,7 +131,7 @@ For convenience, we'll return both the session and user object tied to the sessi

```ts
import { db } from "./db.js";
import { encodeBase32, encodeHexLowerCase } from "@oslojs/encoding";
import { encodeBase32LowerCaseNoPadding, encodeHexLowerCase } from "@oslojs/encoding";
import { sha256 } from "@oslojs/crypto/sha2";

// ...
Expand Down Expand Up @@ -185,7 +185,7 @@ Here's the full code:

```ts
import { db } from "./db.js";
import { encodeBase32, encodeHexLowerCase } from "@oslojs/encoding";
import { encodeBase32LowerCaseNoPadding, encodeHexLowerCase } from "@oslojs/encoding";
import { sha256 } from "@oslojs/crypto/sha2";

export function generateSessionToken(): string {
Expand Down
6 changes: 3 additions & 3 deletions pages/sessions/basic-api/prisma.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ The session ID will be SHA-256 hash of the token. We'll set the expiration to 30

```ts
import { prisma } from "./db.js";
import { encodeBase32, encodeHexLowerCase } from "@oslojs/encoding";
import { encodeBase32LowerCaseNoPadding, encodeHexLowerCase } from "@oslojs/encoding";
import { sha256 } from "@oslojs/crypto/sha2";

// ...
Expand Down Expand Up @@ -120,7 +120,7 @@ For convenience, we'll return both the session and user object tied to the sessi

```ts
import { prisma } from "./db.js";
import { encodeBase32, encodeHexLowerCase } from "@oslojs/encoding";
import { encodeBase32LowerCaseNoPadding, encodeHexLowerCase } from "@oslojs/encoding";
import { sha256 } from "@oslojs/crypto/sha2";

// ...
Expand Down Expand Up @@ -174,7 +174,7 @@ Here's the full code:

```ts
import { prisma } from "./db.js";
import { encodeBase32, encodeHexLowerCase } from "@oslojs/encoding";
import { encodeBase32LowerCaseNoPadding, encodeHexLowerCase } from "@oslojs/encoding";
import { sha256 } from "@oslojs/crypto/sha2";

import type { User, Session } from "@prisma/client";
Expand Down
6 changes: 3 additions & 3 deletions pages/sessions/basic-api/redis.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ The session ID will be SHA-256 hash of the token. We'll set the expiration to 30

```ts
import { redis } from "./redis.js";
import { encodeBase32, encodeHexLowerCase } from "@oslojs/encoding";
import { encodeBase32LowerCaseNoPadding, encodeHexLowerCase } from "@oslojs/encoding";
import { sha256 } from "@oslojs/crypto/sha2";

// ...
Expand Down Expand Up @@ -105,7 +105,7 @@ For convenience, we'll return both the session and user object tied to the sessi

```ts
import { redis } from "./redis.js";
import { encodeBase32, encodeHexLowerCase } from "@oslojs/encoding";
import { encodeBase32LowerCaseNoPadding, encodeHexLowerCase } from "@oslojs/encoding";
import { sha256 } from "@oslojs/crypto/sha2";

// ...
Expand Down Expand Up @@ -159,7 +159,7 @@ Here's the full code:

```ts
import { redis } from "./redis.js";
import { encodeBase32, encodeHexLowerCase } from "@oslojs/encoding";
import { encodeBase32LowerCaseNoPadding, encodeHexLowerCase } from "@oslojs/encoding";
import { sha256 } from "@oslojs/crypto/sha2";

export function generateSessionToken(): string {
Expand Down
6 changes: 3 additions & 3 deletions pages/sessions/basic-api/sqlite.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ The session ID will be SHA-256 hash of the token. We'll set the expiration to 30

```ts
import { db } from "./db.js";
import { encodeBase32, encodeHexLowerCase } from "@oslojs/encoding";
import { encodeBase32LowerCaseNoPadding, encodeHexLowerCase } from "@oslojs/encoding";
import { sha256 } from "@oslojs/crypto/sha2";

// ...
Expand Down Expand Up @@ -131,7 +131,7 @@ For convenience, we'll return both the session and user object tied to the sessi

```ts
import { db } from "./db.js";
import { encodeBase32, encodeHexLowerCase } from "@oslojs/encoding";
import { encodeBase32LowerCaseNoPadding, encodeHexLowerCase } from "@oslojs/encoding";
import { sha256 } from "@oslojs/crypto/sha2";

// ...
Expand Down Expand Up @@ -185,7 +185,7 @@ Here's the full code:

```ts
import { db } from "./db.js";
import { encodeBase32, encodeHexLowerCase } from "@oslojs/encoding";
import { encodeBase32LowerCaseNoPadding, encodeHexLowerCase } from "@oslojs/encoding";
import { sha256 } from "@oslojs/crypto/sha2";

export function generateSessionToken(): string {
Expand Down

0 comments on commit 3dbb314

Please sign in to comment.