{
  "name": "better-auth",
  "version": "1.4.0-beta.9",
  "description": "The most comprehensive authentication library for TypeScript.",
  "type": "module",
  "license": "MIT",
  "repository": {
    "type": "git",
    "url": "https://github.com/better-auth/better-auth",
    "directory": "packages/better-auth"
  },
  "keywords": [
    "auth",
    "oauth",
    "oidc",
    "2fa",
    "social",
    "security",
    "typescript",
    "nextjs"
  ],
  "publishConfig": {
    "access": "public"
  },
  "scripts": {
    "build": "unbuild --clean",
    "stub": "unbuild --stub",
    "test": "vitest",
    "prepare": "prisma generate --schema ./src/adapters/prisma-adapter/test/base.prisma",
    "typecheck": "tsc --project tsconfig.json"
  },
  "main": "./dist/index.mjs",
  "module": "./dist/index.mjs",
  "exports": {
    ".": {
      "import": {
        "types": "./dist/index.d.ts",
        "default": "./dist/index.mjs"
      },
      "require": {
        "types": "./dist/index.d.cts",
        "default": "./dist/index.cjs"
      }
    },
    "./social-providers": {
      "import": {
        "types": "./dist/social-providers/index.d.ts",
        "default": "./dist/social-providers/index.mjs"
      },
      "require": {
        "types": "./dist/social-providers/index.d.cts",
        "default": "./dist/social-providers/index.cjs"
      }
    },
    "./client": {
      "import": {
        "types": "./dist/client/index.d.ts",
        "default": "./dist/client/index.mjs"
      },
      "require": {
        "types": "./dist/client/index.d.cts",
        "default": "./dist/client/index.cjs"
      }
    },
    "./client/plugins": {
      "import": {
        "types": "./dist/client/plugins/index.d.ts",
        "default": "./dist/client/plugins/index.mjs"
      },
      "require": {
        "types": "./dist/client/plugins/index.d.cts",
        "default": "./dist/client/plugins/index.cjs"
      }
    },
    "./types": {
      "import": {
        "types": "./dist/types/index.d.ts",
        "default": "./dist/types/index.mjs"
      },
      "require": {
        "types": "./dist/types/index.d.cts",
        "default": "./dist/types/index.cjs"
      }
    },
    "./crypto": {
      "import": {
        "types": "./dist/crypto/index.d.ts",
        "default": "./dist/crypto/index.mjs"
      },
      "require": {
        "types": "./dist/crypto/index.d.cts",
        "default": "./dist/crypto/index.cjs"
      }
    },
    "./cookies": {
      "import": {
        "types": "./dist/cookies/index.d.ts",
        "default": "./dist/cookies/index.mjs"
      },
      "require": {
        "types": "./dist/cookies/index.d.cts",
        "default": "./dist/cookies/index.cjs"
      }
    },
    "./oauth2": {
      "import": {
        "types": "./dist/oauth2/index.d.ts",
        "default": "./dist/oauth2/index.mjs"
      },
      "require": {
        "types": "./dist/oauth2/index.d.cts",
        "default": "./dist/oauth2/index.cjs"
      }
    },
    "./react": {
      "import": {
        "types": "./dist/client/react/index.d.ts",
        "default": "./dist/client/react/index.mjs"
      },
      "require": {
        "types": "./dist/client/react/index.d.cts",
        "default": "./dist/client/react/index.cjs"
      }
    },
    "./solid": {
      "import": {
        "types": "./dist/client/solid/index.d.ts",
        "default": "./dist/client/solid/index.mjs"
      },
      "require": {
        "types": "./dist/client/solid/index.d.cts",
        "default": "./dist/client/solid/index.cjs"
      }
    },
    "./lynx": {
      "import": {
        "types": "./dist/client/lynx/index.d.ts",
        "default": "./dist/client/lynx/index.mjs"
      },
      "require": {
        "types": "./dist/client/lynx/index.d.cts",
        "default": "./dist/client/lynx/index.cjs"
      }
    },
    "./test": {
      "import": {
        "types": "./dist/test-utils/index.d.ts",
        "default": "./dist/test-utils/index.mjs"
      },
      "require": {
        "types": "./dist/test-utils/index.d.cts",
        "default": "./dist/test-utils/index.cjs"
      }
    },
    "./api": {
      "import": {
        "types": "./dist/api/index.d.ts",
        "default": "./dist/api/index.mjs"
      },
      "require": {
        "types": "./dist/api/index.d.cts",
        "default": "./dist/api/index.cjs"
      }
    },
    "./db": {
      "import": {
        "types": "./dist/db/index.d.ts",
        "default": "./dist/db/index.mjs"
      },
      "require": {
        "types": "./dist/db/index.d.cts",
        "default": "./dist/db/index.cjs"
      }
    },
    "./vue": {
      "import": {
        "types": "./dist/client/vue/index.d.ts",
        "default": "./dist/client/vue/index.mjs"
      },
      "require": {
        "types": "./dist/client/vue/index.d.cts",
        "default": "./dist/client/vue/index.cjs"
      }
    },
    "./plugins": {
      "import": {
        "types": "./dist/plugins/index.d.ts",
        "default": "./dist/plugins/index.mjs"
      },
      "require": {
        "types": "./dist/plugins/index.d.cts",
        "default": "./dist/plugins/index.cjs"
      }
    },
    "./svelte-kit": {
      "import": {
        "types": "./dist/integrations/svelte-kit.d.ts",
        "default": "./dist/integrations/svelte-kit.mjs"
      },
      "require": {
        "types": "./dist/integrations/svelte-kit.d.cts",
        "default": "./dist/integrations/svelte-kit.cjs"
      }
    },
    "./solid-start": {
      "import": {
        "types": "./dist/integrations/solid-start.d.ts",
        "default": "./dist/integrations/solid-start.mjs"
      },
      "require": {
        "types": "./dist/integrations/solid-start.d.cts",
        "default": "./dist/integrations/solid-start.cjs"
      }
    },
    "./svelte": {
      "import": {
        "types": "./dist/client/svelte/index.d.ts",
        "default": "./dist/client/svelte/index.mjs"
      },
      "require": {
        "types": "./dist/client/svelte/index.d.cts",
        "default": "./dist/client/svelte/index.cjs"
      }
    },
    "./next-js": {
      "import": {
        "types": "./dist/integrations/next-js.d.ts",
        "default": "./dist/integrations/next-js.mjs"
      },
      "require": {
        "types": "./dist/integrations/next-js.d.cts",
        "default": "./dist/integrations/next-js.cjs"
      }
    },
    "./react-start": {
      "import": {
        "types": "./dist/integrations/react-start.d.ts",
        "default": "./dist/integrations/react-start.mjs"
      },
      "require": {
        "types": "./dist/integrations/react-start.d.cts",
        "default": "./dist/integrations/react-start.cjs"
      }
    },
    "./node": {
      "import": {
        "types": "./dist/integrations/node.d.ts",
        "default": "./dist/integrations/node.mjs"
      },
      "require": {
        "types": "./dist/integrations/node.d.cts",
        "default": "./dist/integrations/node.cjs"
      }
    },
    "./adapters/prisma": {
      "import": {
        "types": "./dist/adapters/prisma-adapter/index.d.ts",
        "default": "./dist/adapters/prisma-adapter/index.mjs"
      },
      "require": {
        "types": "./dist/adapters/prisma-adapter/index.d.cts",
        "default": "./dist/adapters/prisma-adapter/index.cjs"
      }
    },
    "./adapters/drizzle": {
      "import": {
        "types": "./dist/adapters/drizzle-adapter/index.d.ts",
        "default": "./dist/adapters/drizzle-adapter/index.mjs"
      },
      "require": {
        "types": "./dist/adapters/drizzle-adapter/index.d.cts",
        "default": "./dist/adapters/drizzle-adapter/index.cjs"
      }
    },
    "./adapters/mongodb": {
      "import": {
        "types": "./dist/adapters/mongodb-adapter/index.d.ts",
        "default": "./dist/adapters/mongodb-adapter/index.mjs"
      },
      "require": {
        "types": "./dist/adapters/mongodb-adapter/index.d.cts",
        "default": "./dist/adapters/mongodb-adapter/index.cjs"
      }
    },
    "./adapters/memory": {
      "import": {
        "types": "./dist/adapters/memory-adapter/index.d.ts",
        "default": "./dist/adapters/memory-adapter/index.mjs"
      },
      "require": {
        "types": "./dist/adapters/memory-adapter/index.d.cts",
        "default": "./dist/adapters/memory-adapter/index.cjs"
      }
    },
    "./adapters/test": {
      "import": {
        "types": "./dist/adapters/test.d.ts",
        "default": "./dist/adapters/test.mjs"
      },
      "require": {
        "types": "./dist/adapters/test.d.cts",
        "default": "./dist/adapters/test.cjs"
      }
    },
    "./adapters": {
      "import": {
        "types": "./dist/adapters/index.d.ts",
        "default": "./dist/adapters/index.mjs"
      },
      "require": {
        "types": "./dist/adapters/index.d.cts",
        "default": "./dist/adapters/index.cjs"
      }
    },
    "./plugins/access": {
      "import": {
        "types": "./dist/plugins/access/index.d.ts",
        "default": "./dist/plugins/access/index.mjs"
      },
      "require": {
        "types": "./dist/plugins/access/index.d.cts",
        "default": "./dist/plugins/access/index.cjs"
      }
    },
    "./plugins/admin": {
      "import": {
        "types": "./dist/plugins/admin/index.d.ts",
        "default": "./dist/plugins/admin/index.mjs"
      },
      "require": {
        "types": "./dist/plugins/admin/index.d.cts",
        "default": "./dist/plugins/admin/index.cjs"
      }
    },
    "./plugins/admin/access": {
      "import": {
        "types": "./dist/plugins/admin/access/index.d.ts",
        "default": "./dist/plugins/admin/access/index.mjs"
      },
      "require": {
        "types": "./dist/plugins/admin/access/index.d.cts",
        "default": "./dist/plugins/admin/access/index.cjs"
      }
    },
    "./plugins/anonymous": {
      "import": {
        "types": "./dist/plugins/anonymous/index.d.ts",
        "default": "./dist/plugins/anonymous/index.mjs"
      },
      "require": {
        "types": "./dist/plugins/anonymous/index.d.cts",
        "default": "./dist/plugins/anonymous/index.cjs"
      }
    },
    "./plugins/bearer": {
      "import": {
        "types": "./dist/plugins/bearer/index.d.ts",
        "default": "./dist/plugins/bearer/index.mjs"
      },
      "require": {
        "types": "./dist/plugins/bearer/index.d.cts",
        "default": "./dist/plugins/bearer/index.cjs"
      }
    },
    "./plugins/custom-session": {
      "import": {
        "types": "./dist/plugins/custom-session/index.d.ts",
        "default": "./dist/plugins/custom-session/index.mjs"
      },
      "require": {
        "types": "./dist/plugins/custom-session/index.d.cts",
        "default": "./dist/plugins/custom-session/index.cjs"
      }
    },
    "./plugins/email-otp": {
      "import": {
        "types": "./dist/plugins/email-otp/index.d.ts",
        "default": "./dist/plugins/email-otp/index.mjs"
      },
      "require": {
        "types": "./dist/plugins/email-otp/index.d.cts",
        "default": "./dist/plugins/email-otp/index.cjs"
      }
    },
    "./plugins/generic-oauth": {
      "import": {
        "types": "./dist/plugins/generic-oauth/index.d.ts",
        "default": "./dist/plugins/generic-oauth/index.mjs"
      },
      "require": {
        "types": "./dist/plugins/generic-oauth/index.d.cts",
        "default": "./dist/plugins/generic-oauth/index.cjs"
      }
    },
    "./plugins/jwt": {
      "import": {
        "types": "./dist/plugins/jwt/index.d.ts",
        "default": "./dist/plugins/jwt/index.mjs"
      },
      "require": {
        "types": "./dist/plugins/jwt/index.d.cts",
        "default": "./dist/plugins/jwt/index.cjs"
      }
    },
    "./plugins/haveibeenpwned": {
      "import": {
        "types": "./dist/plugins/haveibeenpwned/index.d.ts",
        "default": "./dist/plugins/haveibeenpwned/index.mjs"
      },
      "require": {
        "types": "./dist/plugins/haveibeenpwned/index.d.cts",
        "default": "./dist/plugins/haveibeenpwned/index.cjs"
      }
    },
    "./plugins/sso": {
      "import": {
        "types": "./dist/plugins/sso/index.d.ts",
        "default": "./dist/plugins/sso/index.mjs"
      },
      "require": {
        "types": "./dist/plugins/sso/index.d.cts",
        "default": "./dist/plugins/sso/index.cjs"
      }
    },
    "./plugins/oidc-provider": {
      "import": {
        "types": "./dist/plugins/oidc-provider/index.d.ts",
        "default": "./dist/plugins/oidc-provider/index.mjs"
      },
      "require": {
        "types": "./dist/plugins/oidc-provider/index.d.cts",
        "default": "./dist/plugins/oidc-provider/index.cjs"
      }
    },
    "./plugins/magic-link": {
      "import": {
        "types": "./dist/plugins/magic-link/index.d.ts",
        "default": "./dist/plugins/magic-link/index.mjs"
      },
      "require": {
        "types": "./dist/plugins/magic-link/index.d.cts",
        "default": "./dist/plugins/magic-link/index.cjs"
      }
    },
    "./plugins/multi-session": {
      "import": {
        "types": "./dist/plugins/multi-session/index.d.ts",
        "default": "./dist/plugins/multi-session/index.mjs"
      },
      "require": {
        "types": "./dist/plugins/multi-session/index.d.cts",
        "default": "./dist/plugins/multi-session/index.cjs"
      }
    },
    "./plugins/oauth-proxy": {
      "import": {
        "types": "./dist/plugins/oauth-proxy/index.d.ts",
        "default": "./dist/plugins/oauth-proxy/index.mjs"
      },
      "require": {
        "types": "./dist/plugins/oauth-proxy/index.d.cts",
        "default": "./dist/plugins/oauth-proxy/index.cjs"
      }
    },
    "./plugins/organization": {
      "import": {
        "types": "./dist/plugins/organization/index.d.ts",
        "default": "./dist/plugins/organization/index.mjs"
      },
      "require": {
        "types": "./dist/plugins/organization/index.d.cts",
        "default": "./dist/plugins/organization/index.cjs"
      }
    },
    "./plugins/organization/access": {
      "import": {
        "types": "./dist/plugins/organization/access/index.d.ts",
        "default": "./dist/plugins/organization/access/index.mjs"
      },
      "require": {
        "types": "./dist/plugins/organization/access/index.d.cts",
        "default": "./dist/plugins/organization/access/index.cjs"
      }
    },
    "./plugins/one-time-token": {
      "import": {
        "types": "./dist/plugins/one-time-token/index.d.ts",
        "default": "./dist/plugins/one-time-token/index.mjs"
      },
      "require": {
        "types": "./dist/plugins/one-time-token/index.d.cts",
        "default": "./dist/plugins/one-time-token/index.cjs"
      }
    },
    "./plugins/passkey": {
      "import": {
        "types": "./dist/plugins/passkey/index.d.ts",
        "default": "./dist/plugins/passkey/index.mjs"
      },
      "require": {
        "types": "./dist/plugins/passkey/index.d.cts",
        "default": "./dist/plugins/passkey/index.cjs"
      }
    },
    "./plugins/phone-number": {
      "import": {
        "types": "./dist/plugins/phone-number/index.d.ts",
        "default": "./dist/plugins/phone-number/index.mjs"
      },
      "require": {
        "types": "./dist/plugins/phone-number/index.d.cts",
        "default": "./dist/plugins/phone-number/index.cjs"
      }
    },
    "./plugins/two-factor": {
      "import": {
        "types": "./dist/plugins/two-factor/index.d.ts",
        "default": "./dist/plugins/two-factor/index.mjs"
      },
      "require": {
        "types": "./dist/plugins/two-factor/index.d.cts",
        "default": "./dist/plugins/two-factor/index.cjs"
      }
    },
    "./plugins/username": {
      "import": {
        "types": "./dist/plugins/username/index.d.ts",
        "default": "./dist/plugins/username/index.mjs"
      },
      "require": {
        "types": "./dist/plugins/username/index.d.cts",
        "default": "./dist/plugins/username/index.cjs"
      }
    },
    "./plugins/siwe": {
      "import": {
        "types": "./dist/plugins/siwe/index.d.ts",
        "default": "./dist/plugins/siwe/index.mjs"
      },
      "require": {
        "types": "./dist/plugins/siwe/index.d.cts",
        "default": "./dist/plugins/siwe/index.cjs"
      }
    },
    "./plugins/device-authorization": {
      "import": {
        "types": "./dist/plugins/device-authorization/index.d.ts",
        "default": "./dist/plugins/device-authorization/index.mjs"
      },
      "require": {
        "types": "./dist/plugins/device-authorization/index.d.cts",
        "default": "./dist/plugins/device-authorization/index.cjs"
      }
    }
  },
  "typesVersions": {
    "*": {
      "*": [
        "./dist/index.d.ts"
      ],
      "node": [
        "./dist/integrations/node.d.ts"
      ],
      "react": [
        "./dist/client/react/index.d.ts"
      ],
      "vue": [
        "./dist/client/vue/index.d.ts"
      ],
      "svelte": [
        "./dist/client/svelte/index.d.ts"
      ],
      "social-providers": [
        "./dist/social-providers/index.d.ts"
      ],
      "client": [
        "./dist/client/index.d.ts"
      ],
      "client/plugins": [
        "./dist/client/plugins/index.d.ts"
      ],
      "types": [
        "./dist/types/index.d.ts"
      ],
      "crypto": [
        "./dist/crypto/index.d.ts"
      ],
      "cookies": [
        "./dist/cookies/index.d.ts"
      ],
      "oauth2": [
        "./dist/oauth2/index.d.ts"
      ],
      "solid": [
        "./dist/client/solid/index.d.ts"
      ],
      "lynx": [
        "./dist/client/lynx/index.d.ts"
      ],
      "api": [
        "./dist/api/index.d.ts"
      ],
      "db": [
        "./dist/db/index.d.ts"
      ],
      "svelte-kit": [
        "./dist/integrations/svelte-kit.d.ts"
      ],
      "solid-start": [
        "./dist/integrations/solid-start.d.ts"
      ],
      "next-js": [
        "./dist/integrations/next-js.d.ts"
      ],
      "react-start": [
        "./dist/integrations/react-start.d.ts"
      ],
      "adapters": [
        "./dist/adapters/index.d.ts"
      ],
      "adapters/prisma": [
        "./dist/adapters/prisma-adapter/index.d.ts"
      ],
      "adapters/drizzle": [
        "./dist/adapters/drizzle-adapter/index.d.ts"
      ],
      "adapters/mongodb": [
        "./dist/adapters/mongodb-adapter/index.d.ts"
      ],
      "adapters/memory": [
        "./dist/adapters/memory-adapter/index.d.ts"
      ],
      "plugins": [
        "./dist/plugins/index.d.ts"
      ],
      "plugins/access": [
        "./dist/plugins/access/index.d.ts"
      ],
      "plugins/admin": [
        "./dist/plugins/admin/index.d.ts"
      ],
      "plugins/admin/access": [
        "./dist/plugins/admin/access/index.d.ts"
      ],
      "plugins/anonymous": [
        "./dist/plugins/anonymous/index.d.ts"
      ],
      "plugins/bearer": [
        "./dist/plugins/bearer/index.d.ts"
      ],
      "plugins/custom-session": [
        "./dist/plugins/custom-session/index.d.ts"
      ],
      "plugins/email-otp": [
        "./dist/plugins/email-otp/index.d.ts"
      ],
      "plugins/generic-oauth": [
        "./dist/plugins/generic-oauth/index.d.ts"
      ],
      "plugins/haveibeenpwned": [
        "./dist/plugins/haveibeenpwned/index.d.ts"
      ],
      "plugins/oauth-proxy": [
        "./dist/plugins/oauth-proxy/index.d.ts"
      ],
      "plugins/one-time-token": [
        "./dist/plugins/one-time-token/index.d.ts"
      ],
      "plugins/sso": [
        "./dist/plugins/sso/index.d.ts"
      ],
      "plugins/oidc-provider": [
        "./dist/plugins/oidc-provider/index.d.ts"
      ],
      "plugins/jwt": [
        "./dist/plugins/jwt/index.d.ts"
      ],
      "plugins/magic-link": [
        "./dist/plugins/magic-link/index.d.ts"
      ],
      "plugins/organization": [
        "./dist/plugins/organization/index.d.ts"
      ],
      "plugins/organization/access": [
        "./dist/plugins/organization/access/index.d.ts"
      ],
      "plugins/passkey": [
        "./dist/plugins/passkey/index.d.ts"
      ],
      "plugins/phone-number": [
        "./dist/plugins/phone-number/index.d.ts"
      ],
      "plugins/two-factor": [
        "./dist/plugins/two-factor/index.d.ts"
      ],
      "plugins/username": [
        "./dist/plugins/username/index.d.ts"
      ],
      "plugins/siwe": [
        "./dist/plugins/siwe/index.d.ts"
      ],
      "plugins/device-authorization": [
        "./dist/plugins/device-authorization/index.d.ts"
      ]
    }
  },
  "dependencies": {
    "@better-auth/core": "workspace:*",
    "@better-auth/telemetry": "workspace:*",
    "@better-auth/utils": "0.3.0",
    "@better-fetch/fetch": "catalog:",
    "@noble/ciphers": "^2.0.0",
    "@noble/hashes": "^2.0.0",
    "@simplewebauthn/browser": "^13.1.2",
    "@simplewebauthn/server": "^13.1.2",
    "better-call": "catalog:",
    "defu": "^6.1.4",
    "jose": "^6.1.0",
    "kysely": "^0.28.5",
    "nanostores": "^1.0.1",
    "zod": "^4.1.5"
  },
  "peerDependenciesOptional": {
    "@lynx-js/react": "*",
    "@sveltejs/kit": "^2.0.0",
    "next": "^14.0.0 || ^15.0.0",
    "react": "^18.0.0 || ^19.0.0",
    "react-dom": "^18.0.0 || ^19.0.0",
    "solid-js": "^1.0.0",
    "svelte": "^4.0.0 || ^5.0.0",
    "vue": "^3.0.0"
  },
  "peerDependenciesMeta": {
    "@lynx-js/react": {
      "optional": true
    },
    "@sveltejs/kit": {
      "optional": true
    },
    "next": {
      "optional": true
    },
    "react": {
      "optional": true
    },
    "react-dom": {
      "optional": true
    },
    "solid-js": {
      "optional": true
    },
    "svelte": {
      "optional": true
    },
    "vue": {
      "optional": true
    }
  },
  "devDependencies": {
    "@lynx-js/react": "^0.114.0",
    "@prisma/client": "^5.22.0",
    "@sveltejs/kit": "^2.37.1",
    "@tanstack/react-start": "^1.131.3",
    "@tanstack/start-server-core": "^1.131.36",
    "@types/better-sqlite3": "^7.6.13",
    "@types/bun": "^1.2.23",
    "@types/keccak": "^3.0.5",
    "@types/pg": "^8.15.5",
    "@types/prompts": "^2.4.9",
    "@types/react": "^19.2.2",
    "better-sqlite3": "^12.2.0",
    "concurrently": "^9.2.1",
    "deepmerge": "^4.3.1",
    "drizzle-kit": "^0.31.4",
    "drizzle-orm": "^0.38.2",
    "happy-dom": "^20.0.0",
    "hono": "^4.9.7",
    "listhen": "^1.9.0",
    "mongodb": "^6.18.0",
    "ms": "4.0.0-nightly.202508271359",
    "mysql2": "^3.14.4",
    "next": "^15.5.4",
    "oauth2-mock-server": "^7.2.1",
    "pg": "^8.16.3",
    "prisma": "^5.22.0",
    "react": "^19.2.0",
    "react-dom": "^19.2.0",
    "react-native": "~0.80.2",
    "solid-js": "^1.9.8",
    "tarn": "^3.0.2",
    "tedious": "^18.6.1",
    "type-fest": "^4.41.0",
    "typescript": "catalog:",
    "unbuild": "catalog:",
    "vue": "^3.5.18"
  },
  "files": [
    "dist"
  ]
}
