mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-06 04:19:20 +00:00
docs: fix typo issues
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
});
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user