diff --git a/docs/docs/configuration/databases.md b/docs/docs/configuration/databases.md index 97a12e9dc1..af73e60b0e 100644 --- a/docs/docs/configuration/databases.md +++ b/docs/docs/configuration/databases.md @@ -3,7 +3,7 @@ id: databases title: Databases --- -NextAuth.js offers multiple database adapters. Check out [the overview](https://authjs.dev/getting-started/adapters). +NextAuth.js offers multiple database adapters. Check out [the overview](https://authjs.dev/getting-started/database). > As of **v4** NextAuth.js no longer ships with an adapter included by default. If you would like to persist any information, you need to install one of the many available adapters yourself. See the individual adapter documentation pages for more details. diff --git a/docs/docs/configuration/options.md b/docs/docs/configuration/options.md index b12f283a57..6cf2984beb 100644 --- a/docs/docs/configuration/options.md +++ b/docs/docs/configuration/options.md @@ -27,7 +27,7 @@ Using [System Environment Variables](https://vercel.com/docs/concepts/projects/e ### NEXTAUTH_SECRET -Used to encrypt the NextAuth.js JWT, and to hash [email verification tokens](https://authjs.dev/getting-started/adapters#verification-token). This is the default value for the `secret` option in [NextAuth](/configuration/options#secret) and [Middleware](/configuration/nextjs#secret). +Used to encrypt the NextAuth.js JWT, and to hash [email verification tokens](https://authjs.dev/guides/creating-a-database-adapter#verification-tokens). This is the default value for the `secret` option in [NextAuth](/configuration/options#secret) and [Middleware](/configuration/nextjs#secret). ### NEXTAUTH_URL_INTERNAL diff --git a/docs/docs/getting-started/upgrade-to-v4.md b/docs/docs/getting-started/upgrade-to-v4.md index 84fd2b786d..4345843d97 100644 --- a/docs/docs/getting-started/upgrade-to-v4.md +++ b/docs/docs/getting-started/upgrade-to-v4.md @@ -319,7 +319,7 @@ Introduced in https://github.com/nextauthjs/next-auth/releases/tag/v4.0.0-next.8 **This does not require any changes from the user - these are adapter specific changes only** -The Adapter API has been rewritten and significantly simplified in NextAuth.js v4. The adapters now have less work to do as some functionality has been migrated to the core of NextAuth, like hashing the [verification token](https://authjs.dev/concepts/database-models#verification-token). +The Adapter API has been rewritten and significantly simplified in NextAuth.js v4. The adapters now have less work to do as some functionality has been migrated to the core of NextAuth, like hashing the [verification token](https://authjs.dev/concepts/database-models#verificationtoken). If you are an adapter maintainer or are interested in writing your own adapter, you can find more information about this change in https://github.com/nextauthjs/next-auth/pull/2361 and release https://github.com/nextauthjs/next-auth/releases/tag/v4.0.0-next.22. diff --git a/docs/docs/providers/azure-ad.md b/docs/docs/providers/azure-ad.md index d81cb3e406..4e56b992aa 100644 --- a/docs/docs/providers/azure-ad.md +++ b/docs/docs/providers/azure-ad.md @@ -11,8 +11,7 @@ Azure Active Directory returns the following fields on `Account`: - `ext_expires_in` (number) - `access_token` (string). -Remember to add these fields to your database schema, in case if you are using an [Adapter](https://next-auth.js.org/adapters). -::: +Remember to add these fields to your database schema, in case if you are using an [Adapter](https://authjs.dev/getting-started/database). ## Documentation diff --git a/docs/docs/providers/github.md b/docs/docs/providers/github.md index b843f9ddba..045f167fb8 100644 --- a/docs/docs/providers/github.md +++ b/docs/docs/providers/github.md @@ -3,9 +3,7 @@ id: github title: GitHub --- -:::note -GitHub returns a field on `Account` called `refresh_token_expires_in` which is a number. See their [docs](https://docs.github.com/en/developers/apps/building-github-apps/refreshing-user-to-server-access-tokens#response). Remember to add this field to your database schema, in case if you are using an [Adapter](https://next-auth.js.org/adapters). -::: +GitHub returns a field on `Account` called `refresh_token_expires_in` which is a number. See their [docs](https://docs.github.com/en/developers/apps/building-github-apps/refreshing-user-to-server-access-tokens#response). Remember to add this field to your database schema, in case if you are using an [Adapter](https://authjs.dev/getting-started/database). ## Documentation diff --git a/docs/docs/providers/twitter.md b/docs/docs/providers/twitter.md index e3f9fb996a..bfb2cce966 100644 --- a/docs/docs/providers/twitter.md +++ b/docs/docs/providers/twitter.md @@ -3,9 +3,7 @@ id: twitter title: Twitter --- -:::note -Twitter is currently the only built-in provider using the OAuth 1.0 spec. This means that you won't receive an `access_token` or `refresh_token`, but an `oauth_token` and `oauth_token_secret` respectively. Remember to add these to your database schema, in case if you are using an [Adapter](https://next-auth.js.org/adapters). -::: +Twitter is currently the only built-in provider using the OAuth 1.0 spec. This means that you won't receive an `access_token` or `refresh_token`, but an `oauth_token` and `oauth_token_secret` respectively. Remember to add these to your database schema, in case if you are using an [Adapter](https://authjs.dev/getting-started/database). ## Documentation diff --git a/docs/docs/tutorials/creating-a-database-adapter.md b/docs/docs/tutorials/creating-a-database-adapter.md index b0e98a9194..b0fc883a96 100644 --- a/docs/docs/tutorials/creating-a-database-adapter.md +++ b/docs/docs/tutorials/creating-a-database-adapter.md @@ -7,7 +7,7 @@ Using a custom adapter you can connect to any database back-end or even several ## How to create an adapter -For more information about the data these methods need to manage see [models](https://authjs.dev/guides/creating-a-database-adapter). +For more information about creating an adapter, see [this guide](https://authjs.dev/guides/creating-a-database-adapter). _See the code below for practical example._