Skip to content

Commit

Permalink
chore: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
awinogrodzki committed Oct 19, 2023
1 parent 404ddc8 commit 129fdb4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,8 @@ Since v0.9.0 `handleValidToken` is called with modified request `headers` as a s

You can pass this object to `NextResponse.next({ request: { headers } })` to enable token verification caching.

See [Modifying Request Headers in Middleware](https://vercel.com/templates/next.js/edge-functions-modify-request-header) for more information on how modified headers work

```tsx
handleValidToken: async ({ token, decodedToken }, headers) => {
return NextResponse.next({
Expand Down

0 comments on commit 129fdb4

Please sign in to comment.