Skip to content

Commit

Permalink
format tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
pilcrowonpaper committed Dec 25, 2023
1 parent dbe278d commit 1bc4607
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 5 deletions.
9 changes: 8 additions & 1 deletion docs/pages/tutorials/username-and-password/astro.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,14 @@ npx degit https://github.com/lucia-auth/examples/tree/v3/astro/username-and-pass

## Update database

Add a `username` column (unique) and `password` column to your user table with a type of string. Create a `DatabaseUserAttributes` interface in the module declaration and add your database columns. By default, Lucia will not expose any database columns to the `User` type. To add a `username` field to it, use the `getUserAttributes()` option.
Add a `username` and `password` column to your user table.

| column | type | attributes |
| ---------- | -------- | ---------- |
| `username` | `string` | unique |
| `password` | `string` | |

Create a `DatabaseUserAttributes` interface in the module declaration and add your database columns. By default, Lucia will not expose any database columns to the `User` type. To add a `username` field to it, use the `getUserAttributes()` option.

```ts
import { Lucia } from "lucia";
Expand Down
9 changes: 8 additions & 1 deletion docs/pages/tutorials/username-and-password/nextjs-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,14 @@ npx degit https://github.com/lucia-auth/examples/tree/v3/nextjs-app/username-and

## Update database

Add a `username` column (unique) and `password` column to your user table with a type of string. Create a `DatabaseUserAttributes` interface in the module declaration and add your database columns. By default, Lucia will not expose any database columns to the `User` type. To add a `username` field to it, use the `getUserAttributes()` option.
Add a `username` and `password` column to your user table.

| column | type | attributes |
| ---------- | -------- | ---------- |
| `username` | `string` | unique |
| `password` | `string` | |

Create a `DatabaseUserAttributes` interface in the module declaration and add your database columns. By default, Lucia will not expose any database columns to the `User` type. To add a `username` field to it, use the `getUserAttributes()` option.

```ts
import { Lucia } from "lucia";
Expand Down
9 changes: 8 additions & 1 deletion docs/pages/tutorials/username-and-password/nextjs-pages.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,14 @@ npx degit https://github.com/lucia-auth/examples/tree/v3/nextjs-pages/username-a

## Update database

Add a `username` column (unique) and `password` column to your user table with a type of string. Create a `DatabaseUserAttributes` interface in the module declaration and add your database columns. By default, Lucia will not expose any database columns to the `User` type. To add a `username` field to it, use the `getUserAttributes()` option.
Add a `username` and `password` column to your user table.

| column | type | attributes |
| ---------- | -------- | ---------- |
| `username` | `string` | unique |
| `password` | `string` | |

Create a `DatabaseUserAttributes` interface in the module declaration and add your database columns. By default, Lucia will not expose any database columns to the `User` type. To add a `username` field to it, use the `getUserAttributes()` option.

```ts
import { Lucia } from "lucia";
Expand Down
8 changes: 6 additions & 2 deletions docs/pages/tutorials/username-and-password/sveltekit.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,14 @@ An [example project](https://github.com/lucia-auth/examples/tree/v3/sveltekit/us
npx degit https://github.com/lucia-auth/examples/tree/v3/sveltekit/username-and-password <directory_name>
```


## Update database

Add a `username` column to your user table with a type of string. Create a `DatabaseUserAttributes` interface in the module declaration and add your database columns. By default, Lucia will not expose any database columns to the `User` type. To add a `username` field to it, use the `getUserAttributes()` option.
Add a `username` and `password` column to your user table.

| column | type | attributes |
| ---------- | -------- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `username` | `string` | unique |
| `password` | `string` | | Create a `DatabaseUserAttributes` interface in the module declaration and add your database columns. By default, Lucia will not expose any database columns to the `User` type. To add a `username` field to it, use the `getUserAttributes()` option. |

```ts
import { Lucia } from "lucia";
Expand Down

0 comments on commit 1bc4607

Please sign in to comment.