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