mirror of
https://github.com/SrIzan10/next-auth.git
synced 2026-05-01 10:55:20 +00:00
fix: correct links
This commit is contained in:
@@ -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")
|
||||
)
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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")
|
||||
)
|
||||
|
||||
|
||||
@@ -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")
|
||||
)
|
||||
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user