Skip to content

Commit 137ac8d

Browse files
committed
Merge branch '08-01-docs_update_sdks' of https://github.com/unkeyed/unkey into 08-01-docs_update_sdks
2 parents 6402def + 7daf3ee commit 137ac8d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/docs/libraries/ts/nextjs.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Protecting API routes is as simple as wrapping them with the `withUnkey` handler
3939
import { NextRequestWithUnkeyContext, withUnkey } from "@unkey/nextjs";
4040

4141
export const POST = withUnkey(
42-
async (req) => {
42+
async (req: NextRequestWithUnkeyContext) => {
4343
// Process the request here
4444
// You have access to the verification response using `req.unkey`
4545
console.log(req.unkey);
@@ -48,6 +48,7 @@ export const POST = withUnkey(
4848
},
4949
{ rootKey: process.env.UNKEY_ROOT_KEY! }
5050
);
51+
);
5152
```
5253

5354
If you want to customize how `withUnkey` processes incoming requests, you can do so as follows:

0 commit comments

Comments
 (0)