From 04ef8e8436ca155aae0259d85cd26f12a49501d0 Mon Sep 17 00:00:00 2001 From: April Hall <134935244+arithefirst@users.noreply.github.com> Date: Tue, 4 Feb 2025 01:24:53 -0500 Subject: [PATCH] docs: Minor grammar and spelling fixes (#1347) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs: Fix typo "middelware" → "middleware" * docs: Fix typo "reqiures" → "requires" * docs: Minor grammar error "to the your" → "to your" * docs: Minor grammar errors in codeblock comments --- docs/content/docs/plugins/phone-number.mdx | 6 +++--- docs/content/docs/reference/faq.mdx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/content/docs/plugins/phone-number.mdx b/docs/content/docs/plugins/phone-number.mdx index 1044f1f8a8..fced37096a 100644 --- a/docs/content/docs/plugins/phone-number.mdx +++ b/docs/content/docs/plugins/phone-number.mdx @@ -88,7 +88,7 @@ When the phone number is verified, the `phoneNumberVerified` field in the user t ### Allow Sign-Up with Phone Number -to allow users to sign up using their phone number, you can pass `signUpOnVerification` option to the your plugin configuration. It reqiures you to pass `getTempEmail` function to generate a temporary email for the user. +to allow users to sign up using their phone number, you can pass `signUpOnVerification` option to your plugin configuration. It requires you to pass `getTempEmail` function to generate a temporary email for the user. ```ts title="auth.ts" export const auth = betterAuth({ @@ -101,9 +101,9 @@ export const auth = betterAuth({ getTempEmail: (phoneNumber) => { return `${phoneNumber}@my-site.com` }, - //optionally you can alos pass `getTempName` function to generate a temporary name for the user + //optionally, you can also pass `getTempName` function to generate a temporary name for the user getTempName: (phoneNumber) => { - return phoneNumber //by default it will use the phone number as the name + return phoneNumber //by default, it will use the phone number as the name } } }) diff --git a/docs/content/docs/reference/faq.mdx b/docs/content/docs/reference/faq.mdx index fcf95fd1a1..4ad7408111 100644 --- a/docs/content/docs/reference/faq.mdx +++ b/docs/content/docs/reference/faq.mdx @@ -15,7 +15,7 @@ If you're using the auth client on react front-end, you'll need to import it fro import { createAuthClient } from "better-auth/react"; ``` -Where as if you're using the auth client in Next.js middelware, server-actions, server-components or anything server-related, you'll likely need to import it from `/client`: +Where as if you're using the auth client in Next.js middleware, server-actions, server-components or anything server-related, you'll likely need to import it from `/client`: ```ts title="server.ts" import { createAuthClient } from "better-auth/client";