Skip to content

Commit

Permalink
Docs: fix typo to match file name to code example (#1692)
Browse files Browse the repository at this point in the history
  • Loading branch information
tef20 authored Sep 7, 2024
1 parent cfe8251 commit 53ddee3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/pages/tutorials/username-and-password/nextjs-pages.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ export default function Page() {
}
```

Create an API route as `pages/api/signup.ts`. First, do a very basic input validation. Get the user with the username and verify the password. If successful, create a new session with `Lucia.createSession()` and set a new session cookie.
Create an API route as `pages/api/login.ts`. First, do a very basic input validation. Get the user with the username and verify the password. If successful, create a new session with `Lucia.createSession()` and set a new session cookie.

```ts
// pages/api/login.ts
Expand Down

0 comments on commit 53ddee3

Please sign in to comment.