diff --git a/demo/nextjs/lib/auth.ts b/demo/nextjs/lib/auth.ts index a5399f4f..f7f15363 100644 --- a/demo/nextjs/lib/auth.ts +++ b/demo/nextjs/lib/auth.ts @@ -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, diff --git a/dev/solidjs/src/lib/auth.ts b/dev/solidjs/src/lib/auth.ts index 31211a05..697b04b7 100644 --- a/dev/solidjs/src/lib/auth.ts +++ b/dev/solidjs/src/lib/auth.ts @@ -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, + }, }); diff --git a/docs/content/docs/authentication/github.mdx b/docs/content/docs/authentication/github.mdx index b7a52ed5..09cbcef0 100644 --- a/docs/content/docs/authentication/github.mdx +++ b/docs/content/docs/authentication/github.mdx @@ -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] }) ```