mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-10 04:19:32 +00:00
* chore: remove examples * chore: add integration tests for Bun and Cloudflare environments - Introduced integration tests for Bun and Cloudflare, including authentication and database setup. - Updated pnpm workspace configuration to include integration tests. - Removed example projects and unnecessary dependencies from pnpm-lock.yaml. - Added .gitignore files for both Bun and Cloudflare integration tests. - Created necessary configuration files and schemas for database interactions. - Updated package.json files to include relevant dependencies for integration testing. * chore: check for navigtaor Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> * await docker Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> * await isWSL Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> * cloudflare checks * lockfile * chore: lint * only run ci on specefic branches --------- Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
13 lines
304 B
TypeScript
13 lines
304 B
TypeScript
import { betterAuth } from "better-auth";
|
|
import { twoFactor } from "better-auth/plugins";
|
|
import Database from "bun:sqlite";
|
|
|
|
export const auth = betterAuth({
|
|
baseURL: "http://localhost:4000",
|
|
database: new Database("./auth.db"),
|
|
emailAndPassword: {
|
|
enabled: true,
|
|
},
|
|
plugins: [twoFactor()],
|
|
});
|