docs: fix typo issues

This commit is contained in:
Bereket Engida
2024-09-27 19:10:37 +03:00
parent 02e03b3290
commit 865e939dfb
3 changed files with 7 additions and 10 deletions

View File

@@ -15,7 +15,7 @@ export const auth = betterAuth({
}), }),
emailAndPassword: { emailAndPassword: {
enabled: true, enabled: true,
async sendResetPasswordToken(token, user) { async sendResetPassword(token, user) {
const res = await resend.emails.send({ const res = await resend.emails.send({
from, from,
to: user.email, to: user.email,

View File

@@ -1,15 +1,12 @@
import { betterAuth } from "better-auth"; import { betterAuth } from "better-auth";
import { github } from "better-auth/social-providers";
export const auth = betterAuth({ export const auth = betterAuth({
database: { database: {
provider: "sqlite", provider: "sqlite",
url: "./db.sqlite", url: "./db.sqlite",
}, },
socialProvider: [ socialProvider: {
github({ clientId: process.env.GITHUB_CLIENT_ID as string,
clientId: process.env.GITHUB_CLIENT_ID as string, clientSecret: process.env.GITHUB_CLIENT_SECRET as string,
clientSecret: process.env.GITHUB_CLIENT_SECRET as string, },
}),
],
}); });

View File

@@ -22,12 +22,12 @@ description: Github Provider
provider: "sqlite", provider: "sqlite",
url: "./db.sqlite", url: "./db.sqlite",
}, },
socialProvider: [ // [!code highlight] socialProviders: { // [!code highlight]
github: { // [!code highlight] github: { // [!code highlight]
clientId: process.env.GITHUB_CLIENT_ID as string, // [!code highlight] clientId: process.env.GITHUB_CLIENT_ID as string, // [!code highlight]
clientSecret: process.env.GITHUB_CLIENT_SECRET as string, // [!code highlight] clientSecret: process.env.GITHUB_CLIENT_SECRET as string, // [!code highlight]
}, // [!code highlight] }, // [!code highlight]
], // [!code highlight] }, // [!code highlight]
}) })
``` ```
</Step> </Step>