Skip to content

Commit

Permalink
doc: update nextjs page router tutorial code for the latest create-t3 (
Browse files Browse the repository at this point in the history
…#336)

* doc: update nextjs page router tutorial code for the latest create-t3

* add session provider setup

* grammar change
  • Loading branch information
jiashengguo authored Jul 25, 2024
1 parent b53d848 commit 62b46ae
Show file tree
Hide file tree
Showing 2 changed files with 344 additions and 286 deletions.
5 changes: 5 additions & 0 deletions docs/quick-start/nextjs-app-router.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,11 @@ npx zenstack generate && npx prisma db push

### 4. Configure NextAuth to use credential-based auth

First, we need to install type definitions for bcryptjs
```bash
npm install --save @types/bcryptjs
```

Now let's update `/src/server/auth.ts` to the content below to
use credentials auth and JWT-based session:

Expand Down
Loading

0 comments on commit 62b46ae

Please sign in to comment.