docs: Minor grammar and spelling fixes (#1347)

* 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
This commit is contained in:
April Hall
2025-02-04 01:24:53 -05:00
committed by GitHub
parent 74471f251d
commit 04ef8e8436
2 changed files with 4 additions and 4 deletions

View File

@@ -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
}
}
})

View File

@@ -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";