Skip to content

Commit

Permalink
docs: Update upgrade-to-v5.md
Browse files Browse the repository at this point in the history
ref #9329
  • Loading branch information
balazsorban44 authored Jan 25, 2024
1 parent d85269d commit b5d5f20
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions docs/docs/guides/upgrade-to-v5.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,6 @@ NextAuth.js has had a few different ways to authenticate server-side in the past

Now that Next.js components are **server-first** by default, and thanks to the investment in using standard Web APIs, we were able to simplify the authentication process to a single `auth()` function that you can use anywhere.

:::note
When using `auth()`, the [`session()` callback](/reference/core/types#session) is ignored. `auth()` will expose anything returned from the [`jwt()` callback](reference/core/types#jwt) or if using a [`"database"` strategy](/reference/core#session), from the [User](/reference/core/adapters#adapteruser). This is because the `session()` callback was designed to protect you from exposing sensitive information to the client, but when using `auth()` you are always on the server.
:::

See the table below for a summary of the changes, and click on the links to learn more about each one.

| Where | v4 | v5 |
Expand Down

0 comments on commit b5d5f20

Please sign in to comment.