Skip to content

Commit

Permalink
chore(docs): fix links to migrate-to-v5 page (#10554)
Browse files Browse the repository at this point in the history
  • Loading branch information
timomeh committed Apr 12, 2024
1 parent c4e60d6 commit 37348c6
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion packages/next-auth/src/index.tsx
@@ -1,5 +1,5 @@
/**
* _If you are looking to migrate from v4, visit the [Upgrade Guide (v5)](https://authjs.dev/guides/upgrade-to-v5)._
* _If you are looking to migrate from v4, visit the [Upgrade Guide (v5)](https://authjs.dev/getting-started/migrating-to-v5)._
*
* ## Installation
*
Expand Down
2 changes: 1 addition & 1 deletion packages/next-auth/src/jwt.ts
@@ -1,6 +1,6 @@
/**
* :::warning Not recommended
* In NextAuth.js v5 or newer, we recommend other authentication methods server-side. Read more at: https://authjs.dev/guides/upgrade-to-v5#authenticating-server-side
* In NextAuth.js v5 or newer, we recommend other authentication methods server-side. Read more at: https://authjs.dev/getting-started/migrating-to-v5#authenticating-server-side
* :::
*
* @module jwt
Expand Down
2 changes: 1 addition & 1 deletion packages/next-auth/src/lib/index.ts
Expand Up @@ -74,7 +74,7 @@ async function getSession(headers: Headers, config: NextAuthConfig) {
callbacks: {
...config.callbacks,
// Since we are server-side, we don't need to filter out the session data
// See https://authjs.dev/guides/upgrade-to-v5/v5#authenticating-server-side
// See https://authjs.dev/getting-started/migrating-to-v5#authenticating-server-side
// TODO: Taint the session data to prevent accidental leakage to the client
// https://react.devreference/nextjs/react/experimental_taintObjectReference
async session(...args) {
Expand Down
4 changes: 2 additions & 2 deletions packages/next-auth/src/middleware.ts
@@ -1,6 +1,6 @@
/**
* :::warning Deprecated
* This module is replaced in v5. Read more at: https://authjs.dev/guides/upgrade-to-v5#authenticating-server-side
* This module is replaced in v5. Read more at: https://authjs.dev/getting-started/migrating-to-v5#authenticating-server-side
* :::
*
* @module middleware
Expand All @@ -9,7 +9,7 @@
throw new ReferenceError(
[
'"next-auth/middleware" is deprecated. If you are not ready to migrate, keep using "next-auth@4".',
"Read more on https://authjs.dev/guides/upgrade-to-v5",
"Read more on https://authjs.dev/getting-started/migrating-to-v5",
].join("\n")
)

Expand Down
4 changes: 2 additions & 2 deletions packages/next-auth/src/next.ts
@@ -1,6 +1,6 @@
/**
* :::warning Deprecated
* This module is replaced in v5. Read more at: https://authjs.dev/guides/upgrade-to-v5#authenticating-server-side
* This module is replaced in v5. Read more at: https://authjs.dev/getting-started/migrating-to-v5#authenticating-server-side
* :::
*
* @module next
Expand All @@ -9,7 +9,7 @@
throw new ReferenceError(
[
'"next-auth/next" is deprecated. If you are not ready to migrate, keep using "next-auth@4".',
"Read more on https://authjs.dev/guides/upgrade-to-v5",
"Read more on https://authjs.dev/getting-started/migrating-to-v5",
].join("\n")
)

Expand Down

0 comments on commit 37348c6

Please sign in to comment.