fix: improve link accessibility issues (#9521)

Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Co-authored-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
This commit is contained in:
Maxwell
2026-05-09 21:31:27 +10:00
committed by GitHub
parent b96bbfe9b7
commit fde043207e
14 changed files with 29 additions and 26 deletions

View File

@@ -0,0 +1,5 @@
---
"better-auth": patch
---
fix: improve link accessibility issues

View File

@@ -5,7 +5,7 @@ body:
- type: checkboxes
attributes:
label: Is this suited for github?
description: Feel free to join the discord community [here](https://discord.gg/better-auth), we can usually respond faster to any questions.
description: Feel free to [join the discord community](https://discord.gg/better-auth), we can usually respond faster to any questions.
options:
- label: Yes, this is suited for github
- type: markdown
@@ -13,8 +13,8 @@ body:
value: |
Thank you for reporting a bug with better-auth!
- Feature requests should be opened [here](https://github.com/better-auth/better-auth/issues/new?template=feature_request.yml).
- Before opening a new issue, please [check](https://github.com/better-auth/better-auth/issues) for existing issues and :+1: upvote the existing issue instead. This will result in a quicker resolution.
- If you have a feature request, please use the [feature request form](https://github.com/better-auth/better-auth/issues/new?template=feature_request.yml) instead.
- Before opening a new issue, please check for [existing issues](https://github.com/better-auth/better-auth/issues) and :+1: upvote the existing issue instead. This will result in a quicker resolution.
- type: textarea
attributes:
label: Reproduction

View File

@@ -5,7 +5,7 @@ body:
- type: checkboxes
attributes:
label: Is this suited for github?
description: Feel free to join the discord community [here](https://discord.gg/better-auth), we can usually respond faster to any questions.
description: Feel free to [join the discord community](https://discord.gg/better-auth), we can usually respond faster to any questions.
options:
- label: Yes, this is suited for github
- type: markdown
@@ -13,8 +13,8 @@ body:
value: |
Thank you for suggesting a feature with better-auth!
- Bug reports should be opened [here](https://github.com/better-auth/better-auth/issues/new?template=bug_report.yml).
- Before opening a feature request, please [check](https://github.com/better-auth/better-auth/issues) for existing issues and :+1: upvote the existing request instead. This will result in a quicker resolution.
- If you have a bug report, please use the [bug report form](https://github.com/better-auth/better-auth/issues/new?template=bug_report.yml) instead.
- Before opening a feature request, please check for [existing issues](https://github.com/better-auth/better-auth/issues) and :+1: upvote the existing request instead. This will result in a quicker resolution.
- type: textarea
attributes:
label: Is your feature request related to a problem? Please describe.

View File

@@ -63,8 +63,7 @@ Weve noticed that some users are migrating from Supabase to PlanetScale Postg
</Step>
<Step>
Follow and complete the basic setup
[here](https://www.better-auth.com/docs/installation)
Follow and complete the [basic setup](https://www.better-auth.com/docs/installation)
</Step>
</Steps>
@@ -342,7 +341,7 @@ You've successfully migrated from Supabase Auth to Better Auth on PlanetScale.
* Double-check that all environment variables are set in production.
* Test all auth flows (sign-up, login, password reset, session refresh) before going live.
* Remember that this is just the basics and if you've integrated Supabase Auth's auth functions in a lot of placed you'd have to find the suitable Better Auth replacements [here](https://www.better-auth.com/docs).
* Remember that this is just the basics and if you've integrated Supabase Auth's auth functions in a lot of placed you'd have to find the suitable [Better Auth replacements](https://www.better-auth.com/docs).
* Have fun!
### Learn More!

View File

@@ -41,6 +41,5 @@ Any dialect supported by Kysely can be utilized with Better Auth, including capa
* [PGLite](https://github.com/czeidler/kysely-pglite-dialect)
<Callout>
You can see the full list of supported Kysely dialects{" "}
<Link href="https://kysely.dev/docs/dialects">here</Link>.
You can see the full list of supported <Link href="https://kysely.dev/docs/dialects">Kysely dialects</Link>.
</Callout>

View File

@@ -34,7 +34,7 @@ export const auth = betterAuth({
```
<Callout type="warning">
Starting from Prisma 7, the `output` path field is required. If you have configured a custom output path in your `schema.prisma` file (e.g., `output = "../src/generated/prisma"`), make sure to import the Prisma client from that location instead of `@prisma/client`. For more information, see [here](https://www.prisma.io/docs/orm/prisma-client/setup-and-configuration/generating-prisma-client#the-location-of-prisma-client).
Starting from Prisma 7, the `output` path field is required. If you have configured a custom output path in your `schema.prisma` file (e.g., `output = "../src/generated/prisma"`), make sure to [import the Prisma client from that location](https://www.prisma.io/docs/orm/prisma-client/setup-and-configuration/generating-prisma-client#the-location-of-prisma-client) instead of `@prisma/client`.
</Callout>
## Schema generation & migration

View File

@@ -165,7 +165,7 @@ Before starting the migration process, set up Better Auth in your project. Follo
<Step>
### Export Clerk Users
Go to the Clerk dashboard and export the users. Check how to do it [here](https://clerk.com/docs/deployments/exporting-users#export-your-users-data-from-the-clerk-dashboard). It will download a CSV file with the users data. You need to save it as `exported_users.csv` and put it in the root of your project.
Go to the Clerk dashboard and [export the users](https://clerk.com/docs/deployments/exporting-users#export-your-users-data-from-the-clerk-dashboard). It will download a CSV file with the users data. You need to save it as `exported_users.csv` and put it in the root of your project.
</Step>
<Step>

View File

@@ -46,7 +46,7 @@ Here are examples of how you can do caching in different frameworks and environm
}
```
Learn more about NextJS use cache directive <Link href="https://nextjs.org/docs/app/api-reference/directives/use-cache">here</Link>.
Learn more about <Link href="https://nextjs.org/docs/app/api-reference/directives/use-cache">NextJS use cache directive</Link>.
</Tab>
<Tab value="react-router">
@@ -82,7 +82,7 @@ Here are examples of how you can do caching in different frameworks and environm
);
```
Learn more about SolidStart `query` function <Link href="https://docs.solidjs.com/solid-router/reference/data-apis/query">here</Link>.
Learn more about SolidStart <Link href="https://docs.solidjs.com/solid-router/reference/data-apis/query">`query` function</Link>.
</Tab>
<Tab value="TanStack Query">
@@ -113,7 +113,7 @@ Here are examples of how you can do caching in different frameworks and environm
}
```
Learn more about TanStack Query <Link href="https://tanstack.com/query">here</Link>.
Learn more about <Link href="https://tanstack.com/query">TanStack Query</Link>.
</Tab>
</Tabs>

View File

@@ -709,4 +709,4 @@ Existing active sessions will not be migrated. After the migration, users will n
Congratulations! You've successfully migrated from WorkOS to Better Auth. Better Auth offers greater flexibility and more features, so be sure to explore the [documentation](/docs) to unlock its full potential.
If you need help with migration, join our [community](/community) or reach out for Enterprise support [here](/enterprise).
If you need help with migration, join our [community](/community) or reach out for [Enterprise support](/enterprise).

View File

@@ -40,7 +40,7 @@ In this guide, we'll walk through the steps to integrate Better Auth with [Conve
```
<Callout type="info">
`@convex-dev/better-auth` is maintained by Convex. For issues or more details, please visit [here](https://github.com/get-convex/better-auth).
[`@convex-dev/better-auth`](https://github.com/get-convex/better-auth) is maintained by Convex.
</Callout>
</Step>
@@ -114,7 +114,7 @@ In this guide, we'll walk through the steps to integrate Better Auth with [Conve
<Step>
## Create the Better Auth Convex Component
Convex components can be installed from NPM or a local folder. While the NPM version is available [here](https://labs.convex.dev/better-auth), this guide uses a local folder setup to unlock the full potential of Better Auth.
Convex components can be installed from NPM or a local folder. While the [NPM version](https://labs.convex.dev/better-auth) is available, this guide uses a local folder setup to unlock the full potential of Better Auth.
### Create the component definition

View File

@@ -17,7 +17,7 @@ Expo is a popular framework for building cross-platform apps with React Native.
Before using Better Auth with Expo, make sure you have a Better Auth backend set up. You can either use a separate server or leverage Expo's new [API Routes](https://docs.expo.dev/router/reference/api-routes) feature to host your Better Auth instance.
To get started, check out our [installation](/docs/installation) guide for setting up Better Auth on your server. If you prefer to check out the full example, you can find it [here](https://github.com/better-auth/examples/tree/main/expo-example).
To get started, check out our [installation](/docs/installation) guide for setting up Better Auth on your server. If you prefer, check out the [full example](https://github.com/better-auth/examples/tree/main/expo-example).
To use the new API routes feature in Expo to host your Better Auth instance you can create a new API route in your Expo app and mount the Better Auth handler.
@@ -330,7 +330,7 @@ export default function SocialSignIn() {
```
<Callout type="info">
On native (iOS/Android), `signIn.social` does not navigate automatically. Handle navigation yourself after it resolves. Note that the underlying browser behavior differs by platform. For more information, see [here](https://docs.expo.dev/versions/latest/sdk/webbrowser/#webbrowseropenauthsessionasyncurl-redirecturl-options).
On native (iOS/Android), `signIn.social` does not navigate automatically. Handle navigation yourself after it resolves. Note that the [underlying browser behavior differs by platform](https://docs.expo.dev/versions/latest/sdk/webbrowser/#webbrowseropenauthsessionasyncurl-redirecturl-options).
</Callout>
#### IdToken Sign-In

View File

@@ -196,4 +196,4 @@ export default defineEventHandler({
### Example
You can find an example of a Nitro application integrated with Better Auth & Prisma [here](https://github.com/BayBreezy/nitrojs-better-auth-prisma).
See an [example Nitro application integrated with Better Auth & Prisma](https://github.com/BayBreezy/nitrojs-better-auth-prisma).

View File

@@ -105,9 +105,9 @@ Once you have an idea of what you want to contribute, you can start making chang
* Make your changes to the codebase.
* Write tests if needed. (Read more about testing <Link href="/docs/reference/contributing#testing">here</Link>)
* Write tests if needed. (Read more about <Link href="/docs/reference/contributing#testing">testing</Link>)
* Update documentation. (Read more about documenting <Link href="/docs/reference/contributing#documentation">here</Link>)
* Update documentation. (Read more about <Link href="/docs/reference/contributing#documentation">documenting</Link>)
</Step>
</Steps>

View File

@@ -305,8 +305,8 @@ ${
>
${
!description
? "We encountered an unexpected error. Please try again or return to the home page. If you're a developer, you can find more information about the error " +
`<a href='https://better-auth.com/docs/reference/errors/${encodeURIComponent(code)}' target='_blank' rel="noopener noreferrer" style='color: var(--foreground); text-decoration: underline;'>here</a>.`
? "We encountered an unexpected error. Please try again or return to the home page. If you're a developer, you can find " +
`<a href='https://better-auth.com/docs/reference/errors/${encodeURIComponent(code)}' target='_blank' rel="noopener noreferrer" style='color: var(--foreground); text-decoration: underline;'>more information about the error</a>.`
: description
}
</p>