mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-26 00:46:44 -05:00
16 lines
350 B
TypeScript
16 lines
350 B
TypeScript
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,
|
|
}),
|
|
],
|
|
});
|