Skip to content

Commit 62b46ae

Browse files
authored
doc: update nextjs page router tutorial code for the latest create-t3 (#336)
* doc: update nextjs page router tutorial code for the latest create-t3 * add session provider setup * grammar change
1 parent b53d848 commit 62b46ae

File tree

2 files changed

+344
-286
lines changed

2 files changed

+344
-286
lines changed

docs/quick-start/nextjs-app-router.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,11 @@ npx zenstack generate && npx prisma db push
101101

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

104+
First, we need to install type definitions for bcryptjs
105+
```bash
106+
npm install --save @types/bcryptjs
107+
```
108+
104109
Now let's update `/src/server/auth.ts` to the content below to
105110
use credentials auth and JWT-based session:
106111

0 commit comments

Comments
 (0)