fix: correct links

This commit is contained in:
Balázs Orbán
2023-10-24 15:42:44 -07:00
parent fe003ec6ff
commit f78b33f2fa
5 changed files with 8 additions and 8 deletions

View File

@@ -1,6 +1,6 @@
/**
* :::warning Deprecated
* This module is replaced in v5. Read more at: https://nextjs.authjs.dev/v5#authenticating-server-side
* This module is replaced in v5. Read more at: https://authjs.dev/guides/upgrade-to-v5/v5#authenticating-server-side
* :::
*
* @module jwt
@@ -9,7 +9,7 @@
throw new ReferenceError(
[
'"next-auth/jwt" is deprecated. If you are not ready to migrate, keep using "next-auth@4".',
"Read more on https://nextjs.authjs.dev/v5",
"Read more on https://authjs.dev/guides/upgrade-to-v5/v5",
].join("\n")
)

View File

@@ -70,7 +70,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://nextjs.authjs.dev/v5#authenticating-server-side
// See https://authjs.dev/guides/upgrade-to-v5/v5#authenticating-server-side
// TODO: Taint the session data to prevent accidental leakage to the client
// https://react.dev/reference/react/experimental_taintObjectReference
async session(...args) {

View File

@@ -1,6 +1,6 @@
/**
* :::warning Deprecated
* This module is replaced in v5. Read more at: https://nextjs.authjs.dev/v5#authenticating-server-side
* This module is replaced in v5. Read more at: https://authjs.dev/guides/upgrade-to-v5/v5#authenticating-server-side
* :::
*
* @module middleware
@@ -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://nextjs.authjs.dev/v5",
"Read more on https://authjs.dev/guides/upgrade-to-v5/v5",
].join("\n")
)

View File

@@ -1,6 +1,6 @@
/**
* :::warning Deprecated
* This module is replaced in v5. Read more at: https://nextjs.authjs.dev/v5#authenticating-server-side
* This module is replaced in v5. Read more at: https://authjs.dev/guides/upgrade-to-v5/v5#authenticating-server-side
* :::
*
* @module next
@@ -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://nextjs.authjs.dev/v5",
"Read more on https://authjs.dev/guides/upgrade-to-v5/v5",
].join("\n")
)

View File

@@ -2,7 +2,7 @@
*
* NextAuth.js methods and components that work in [Client components](https://nextjs.org/docs/app/building-your-application/rendering/client-components) and the [Pages Router](https://nextjs.org/docs/pages).
*
* For use in [Server Actions](https://nextjs.org/docs/app/api-reference/functions/server-actions), check out [these methods](https://nextjs.authjs.dev#methods)
* For use in [Server Actions](https://nextjs.org/docs/app/api-reference/functions/server-actions), check out [these methods](https://authjs.dev/guides/upgrade-to-v5#methods)
*
* @module react
*/