Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(v4-docs): update adapter links #10669

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/docs/configuration/databases.md
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/configuration/options.md
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/getting-started/upgrade-to-v4.md
Expand Up @@ -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.

Expand Down
3 changes: 1 addition & 2 deletions docs/docs/providers/azure-ad.md
Expand Up @@ -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

Expand Down
4 changes: 1 addition & 3 deletions docs/docs/providers/github.md
Expand Up @@ -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

Expand Down
4 changes: 1 addition & 3 deletions docs/docs/providers/twitter.md
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/tutorials/creating-a-database-adapter.md
Expand Up @@ -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._

Expand Down