From d914650289600a78ec4d37146b6ae5aba0543152 Mon Sep 17 00:00:00 2001 From: Muntasir Mahmud Date: Wed, 14 May 2025 23:27:58 +0600 Subject: [PATCH] chore: clean up minor typo mistakes --- docs/app/api/og/route.tsx | 2 +- docs/components/github-stat.tsx | 2 +- docs/content/docs/concepts/database.mdx | 2 +- docs/content/docs/plugins/api-key.mdx | 4 ++-- .../components/ui/chart-area/AreaChart.vue | 6 +++--- .../create-adapter/test/create-adapter.test.ts | 10 +++++----- packages/better-auth/src/init.test.ts | 2 +- packages/better-auth/src/plugins/api-key/types.ts | 4 ++-- .../src/plugins/captcha/captcha.test.ts | 6 +++--- .../src/plugins/oidc-provider/authorize.ts | 2 +- .../better-auth/src/social-providers/roblox.ts | 4 ++-- packages/cli/src/generators/auth-config.ts | 14 +++++++------- 12 files changed, 29 insertions(+), 29 deletions(-) diff --git a/docs/app/api/og/route.tsx b/docs/app/api/og/route.tsx index 5ad1dc6585..0c9b70ba90 100644 --- a/docs/app/api/og/route.tsx +++ b/docs/app/api/og/route.tsx @@ -121,7 +121,7 @@ export async function GET(req: Request) { style={{ fontFamily: "GeistMono", fontWeight: "normal" }} tw="relative flex mt-10 text-xl uppercase font-bold gap-2 items-center" > - {type === "documentaiton" ? ( + {type === "documentation" ? (
diff --git a/docs/content/docs/concepts/database.mdx b/docs/content/docs/concepts/database.mdx index 5c4ea59170..31d91cc2ba 100644 --- a/docs/content/docs/concepts/database.mdx +++ b/docs/content/docs/concepts/database.mdx @@ -505,7 +505,7 @@ There are two types of hooks you can define: #### 1. Before Hook - **Purpose**: This hook is called before the respective entity (user, session, or account) is created or updated. -- **Behavior**: If the hook returns `false`, the operation will be aborted. And If it returns a data object, it'll replace the orginal payload. +- **Behavior**: If the hook returns `false`, the operation will be aborted. And If it returns a data object, it'll replace the original payload. #### 2. After Hook diff --git a/docs/content/docs/plugins/api-key.mdx b/docs/content/docs/plugins/api-key.mdx index 4442c09fb3..3baa824607 100644 --- a/docs/content/docs/plugins/api-key.mdx +++ b/docs/content/docs/plugins/api-key.mdx @@ -588,7 +588,7 @@ Customize the starting characters configuration. `shouldStore` `boolean` - Wether to store the starting characters in the database. + Whether to store the starting characters in the database. If false, we will set `start` to `null`. Default is `true`. @@ -645,7 +645,7 @@ Customize the key expiration. `disableCustomExpiresTime` `boolean` - Wether to disable the expires time passed from the client. + Whether to disable the expires time passed from the client. If `true`, the expires time will be based on the default values. Default is `false`. diff --git a/examples/nuxt-example/components/ui/chart-area/AreaChart.vue b/examples/nuxt-example/components/ui/chart-area/AreaChart.vue index bc12e6dd32..22161ec7be 100644 --- a/examples/nuxt-example/components/ui/chart-area/AreaChart.vue +++ b/examples/nuxt-example/components/ui/chart-area/AreaChart.vue @@ -21,7 +21,7 @@ const props = withDefaults( * Controls the visibility of gradient. * @default true */ - showGradiant?: boolean; + showGradient?: boolean; } >(), { @@ -33,7 +33,7 @@ const props = withDefaults( showTooltip: true, showLegend: true, showGridLine: true, - showGradiant: true, + showGradient: true, }, ); @@ -74,7 +74,7 @@ function handleLegendItemClick(d: BulletLegendItemInterface, i: number) { -