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: {
enabled: true,
async sendResetPasswordToken(token, user) {
async sendResetPassword(token, user) {
const res = await resend.emails.send({
from,
to: user.email,

View File

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

View File

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