{
  "name": "better-auth",
  "version": "1.1.17",
  "description": "The most comprehensive authentication library for TypeScript.",
  "type": "module",
  "repository": {
    "type": "git",
    "url": "https://github.com/better-auth/better-auth",
    "directory": "packages/better-auth"
  },
  "scripts": {
    "build": "cross-env NODE_OPTIONS=--max-old-space-size=8000 tsup --clean --dts",
    "dev": "cross-env NODE_OPTIONS='--max-old-space-size=4000' tsup --watch --sourcemap",
    "dev:dts": "cross-env NODE_OPTIONS='--max-old-space-size=16192' tsup --watch --dts",
    "test": "pnpm prisma:push && vitest",
    "prisma:push": "prisma db push --schema src/adapters/prisma-adapter/test/schema.prisma",
    "test:adapters": "pnpm prisma:push && vitest adapters",
    "bump": "bumpp",
    "typecheck": "tsc --noEmit"
  },
  "main": "./dist/index.cjs",
  "module": "./dist/index.js",
  "exports": {
    ".": {
      "import": {
        "types": "./dist/index.d.ts",
        "default": "./dist/index.js"
      },
      "require": {
        "types": "./dist/index.d.cts",
        "default": "./dist/index.cjs"
      }
    },
    "./social-providers": {
      "import": {
        "types": "./dist/social.d.ts",
        "default": "./dist/social.js"
      },
      "require": {
        "types": "./dist/social.d.cts",
        "default": "./dist/social.cjs"
      }
    },
    "./client": {
      "import": {
        "types": "./dist/client.d.ts",
        "default": "./dist/client.js"
      },
      "require": {
        "types": "./dist/client.d.cts",
        "default": "./dist/client.cjs"
      }
    },
    "./client/plugins": {
      "import": {
        "types": "./dist/client/plugins.d.ts",
        "default": "./dist/client/plugins.js"
      },
      "require": {
        "types": "./dist/client/plugins.d.cts",
        "default": "./dist/client/plugins.cjs"
      }
    },
    "./types": {
      "import": {
        "types": "./dist/types.d.ts",
        "default": "./dist/types.js"
      },
      "require": {
        "types": "./dist/types.d.cts",
        "default": "./dist/types.cjs"
      }
    },
    "./crypto": {
      "import": {
        "types": "./dist/crypto.d.ts",
        "default": "./dist/crypto.js"
      },
      "require": {
        "types": "./dist/crypto.d.cts",
        "default": "./dist/crypto.cjs"
      }
    },
    "./cookies": {
      "import": {
        "types": "./dist/cookies.d.ts",
        "default": "./dist/cookies.js"
      },
      "require": {
        "types": "./dist/cookies.d.cts",
        "default": "./dist/cookies.cjs"
      }
    },
    "./oauth2": {
      "import": {
        "types": "./dist/oauth2.d.ts",
        "default": "./dist/oauth2.js"
      },
      "require": {
        "types": "./dist/oauth2.d.cts",
        "default": "./dist/oauth2.cjs"
      }
    },
    "./react": {
      "import": {
        "types": "./dist/react.d.ts",
        "default": "./dist/react.js"
      },
      "require": {
        "types": "./dist/react.d.cts",
        "default": "./dist/react.cjs"
      }
    },
    "./solid": {
      "import": {
        "types": "./dist/solid.d.ts",
        "default": "./dist/solid.js"
      },
      "require": {
        "types": "./dist/solid.d.cts",
        "default": "./dist/solid.cjs"
      }
    },
    "./api": {
      "import": {
        "types": "./dist/api.d.ts",
        "default": "./dist/api.js"
      },
      "require": {
        "types": "./dist/api.d.cts",
        "default": "./dist/api.cjs"
      }
    },
    "./db": {
      "import": {
        "types": "./dist/db.d.ts",
        "default": "./dist/db.js"
      },
      "require": {
        "types": "./dist/db.d.cts",
        "default": "./dist/db.cjs"
      }
    },
    "./vue": {
      "import": {
        "types": "./dist/vue.d.ts",
        "default": "./dist/vue.js"
      },
      "require": {
        "types": "./dist/vue.d.cts",
        "default": "./dist/vue.cjs"
      }
    },
    "./plugins": {
      "import": {
        "types": "./dist/plugins.d.ts",
        "default": "./dist/plugins.js"
      },
      "require": {
        "types": "./dist/plugins.d.cts",
        "default": "./dist/plugins.cjs"
      }
    },
    "./svelte-kit": {
      "import": {
        "types": "./dist/svelte-kit.d.ts",
        "default": "./dist/svelte-kit.js"
      },
      "require": {
        "types": "./dist/svelte-kit.d.cts",
        "default": "./dist/svelte-kit.cjs"
      }
    },
    "./solid-start": {
      "import": {
        "types": "./dist/solid-start.d.ts",
        "default": "./dist/solid-start.js"
      },
      "require": {
        "types": "./dist/solid-start.d.cts",
        "default": "./dist/solid-start.cjs"
      }
    },
    "./svelte": {
      "import": {
        "types": "./dist/svelte.d.ts",
        "default": "./dist/svelte.js"
      },
      "require": {
        "types": "./dist/svelte.d.cts",
        "default": "./dist/svelte.cjs"
      }
    },
    "./next-js": {
      "import": {
        "types": "./dist/next-js.d.ts",
        "default": "./dist/next-js.js"
      },
      "require": {
        "types": "./dist/next-js.d.cts",
        "default": "./dist/next-js.cjs"
      }
    },
    "./node": {
      "import": {
        "types": "./dist/node.d.ts",
        "default": "./dist/node.js"
      },
      "require": {
        "types": "./dist/node.d.cts",
        "default": "./dist/node.cjs"
      }
    },
    "./adapters/prisma": {
      "import": {
        "types": "./dist/adapters/prisma.d.ts",
        "default": "./dist/adapters/prisma.js"
      },
      "require": {
        "types": "./dist/adapters/prisma.d.cts",
        "default": "./dist/adapters/prisma.cjs"
      }
    },
    "./adapters/drizzle": {
      "import": {
        "types": "./dist/adapters/drizzle.d.ts",
        "default": "./dist/adapters/drizzle.js"
      },
      "require": {
        "types": "./dist/adapters/drizzle.d.cts",
        "default": "./dist/adapters/drizzle.cjs"
      }
    },
    "./adapters/mongodb": {
      "import": {
        "types": "./dist/adapters/mongodb.d.ts",
        "default": "./dist/adapters/mongodb.js"
      },
      "require": {
        "types": "./dist/adapters/mongodb.d.cts",
        "default": "./dist/adapters/mongodb.cjs"
      }
    },
    "./adapters/memory": {
      "import": {
        "types": "./dist/adapters/memory.d.ts",
        "default": "./dist/adapters/memory.js"
      },
      "require": {
        "types": "./dist/adapters/memory.d.cts",
        "default": "./dist/adapters/memory.cjs"
      }
    },
    "./adapters/test": {
      "import": {
        "types": "./dist/adapters/test.d.ts",
        "default": "./dist/adapters/test.js"
      },
      "require": {
        "types": "./dist/adapters/test.d.cts",
        "default": "./dist/adapters/test.cjs"
      }
    },
    "./plugins/access": {
      "import": {
        "types": "./dist/plugins/access.d.ts",
        "default": "./dist/plugins/access.js"
      },
      "require": {
        "types": "./dist/plugins/access.d.cts",
        "default": "./dist/plugins/access.cjs"
      }
    },
    "./plugins/admin": {
      "import": {
        "types": "./dist/plugins/admin.d.ts",
        "default": "./dist/plugins/admin.js"
      },
      "require": {
        "types": "./dist/plugins/admin.d.cts",
        "default": "./dist/plugins/admin.cjs"
      }
    },
    "./plugins/anonymous": {
      "import": {
        "types": "./dist/plugins/anonymous.d.ts",
        "default": "./dist/plugins/anonymous.js"
      },
      "require": {
        "types": "./dist/plugins/anonymous.d.cts",
        "default": "./dist/plugins/anonymous.cjs"
      }
    },
    "./plugins/bearer": {
      "import": {
        "types": "./dist/plugins/bearer.d.ts",
        "default": "./dist/plugins/bearer.js"
      },
      "require": {
        "types": "./dist/plugins/bearer.d.cts",
        "default": "./dist/plugins/bearer.cjs"
      }
    },
    "./plugins/custom-session": {
      "import": {
        "types": "./dist/plugins/custom-session.d.ts",
        "default": "./dist/plugins/custom-session.js"
      },
      "require": {
        "types": "./dist/plugins/custom-session.d.cts",
        "default": "./dist/plugins/custom-session.cjs"
      }
    },
    "./plugins/email-otp": {
      "import": {
        "types": "./dist/plugins/email-otp.d.ts",
        "default": "./dist/plugins/email-otp.js"
      },
      "require": {
        "types": "./dist/plugins/email-otp.d.cts",
        "default": "./dist/plugins/email-otp.cjs"
      }
    },
    "./plugins/generic-oauth": {
      "import": {
        "types": "./dist/plugins/generic-oauth.d.ts",
        "default": "./dist/plugins/generic-oauth.js"
      },
      "require": {
        "types": "./dist/plugins/generic-oauth.d.cts",
        "default": "./dist/plugins/generic-oauth.cjs"
      }
    },
    "./plugins/jwt": {
      "import": {
        "types": "./dist/plugins/jwt.d.ts",
        "default": "./dist/plugins/jwt.js"
      },
      "require": {
        "types": "./dist/plugins/jwt.d.cts",
        "default": "./dist/plugins/jwt.cjs"
      }
    },
    "./plugins/sso": {
      "import": {
        "types": "./dist/plugins/sso.d.ts",
        "default": "./dist/plugins/sso.js"
      },
      "require": {
        "types": "./dist/plugins/sso.d.cts",
        "default": "./dist/plugins/sso.cjs"
      }
    },
    "./plugins/oidc-plugin": {
      "import": {
        "types": "./dist/plugins/oidc-plugin.d.ts",
        "default": "./dist/plugins/oidc-plugin.js"
      },
      "require": {
        "types": "./dist/plugins/oidc-plugin.d.cts",
        "default": "./dist/plugins/oidc-plugin.cjs"
      }
    },
    "./plugins/magic-link": {
      "import": {
        "types": "./dist/plugins/magic-link.d.ts",
        "default": "./dist/plugins/magic-link.js"
      },
      "require": {
        "types": "./dist/plugins/magic-link.d.cts",
        "default": "./dist/plugins/magic-link.cjs"
      }
    },
    "./plugins/multi-session": {
      "import": {
        "types": "./dist/plugins/multi-session.d.ts",
        "default": "./dist/plugins/multi-session.js"
      },
      "require": {
        "types": "./dist/plugins/multi-session.d.cts",
        "default": "./dist/plugins/multi-session.cjs"
      }
    },
    "./plugins/oauth-proxy": {
      "import": {
        "types": "./dist/plugins/oauth-proxy.d.ts",
        "default": "./dist/plugins/oauth-proxy.js"
      },
      "require": {
        "types": "./dist/plugins/oauth-proxy..d.cts",
        "default": "./dist/plugins/oauth-proxy..cjs"
      }
    },
    "./plugins/organization": {
      "import": {
        "types": "./dist/plugins/organization.d.ts",
        "default": "./dist/plugins/organization.js"
      },
      "require": {
        "types": "./dist/plugins/organization.d.cts",
        "default": "./dist/plugins/organization.cjs"
      }
    },
    "./plugins/passkey": {
      "import": {
        "types": "./dist/plugins/passkey.d.ts",
        "default": "./dist/plugins/passkey.js"
      },
      "require": {
        "types": "./dist/plugins/passkey.d.cts",
        "default": "./dist/plugins/passkey.cjs"
      }
    },
    "./plugins/phone-number": {
      "import": {
        "types": "./dist/plugins/phone-number.d.ts",
        "default": "./dist/plugins/phone-number.js"
      },
      "require": {
        "types": "./dist/plugins/phone-number.d.cts",
        "default": "./dist/plugins/phone-number.cjs"
      }
    },
    "./plugins/two-factor": {
      "import": {
        "types": "./dist/plugins/two-factor.d.ts",
        "default": "./dist/plugins/two-factor.js"
      },
      "require": {
        "types": "./dist/plugins/two-factor.d.cts",
        "default": "./dist/plugins/two-factor.cjs"
      }
    },
    "./plugins/username": {
      "import": {
        "types": "./dist/plugins/username.d.ts",
        "default": "./dist/plugins/username.js"
      },
      "require": {
        "types": "./dist/plugins/username.d.cts",
        "default": "./dist/plugins/username.cjs"
      }
    }
  },
  "typesVersions": {
    "*": {
      "*": [
        "./dist/index.d.ts"
      ],
      "node": [
        "./dist/node.d.ts"
      ],
      "react": [
        "./dist/react.d.ts"
      ],
      "vue": [
        "./dist/vue.d.ts"
      ],
      "svelte": [
        "./dist/svelte.d.ts"
      ],
      "social-providers": [
        "./dist/social.d.ts"
      ],
      "client": [
        "./dist/client.d.ts"
      ],
      "client/plugins": [
        "./dist/client/plugins.d.ts"
      ],
      "expo": [
        "./dist/expo.d.ts"
      ],
      "types": [
        "./dist/types.d.ts"
      ],
      "crypto": [
        "./dist/crypto.d.ts"
      ],
      "cookies": [
        "./dist/cookies.d.ts"
      ],
      "oauth2": [
        "./dist/oauth2.d.ts"
      ],
      "solid": [
        "./dist/solid.d.ts"
      ],
      "api": [
        "./dist/api.d.ts"
      ],
      "db": [
        "./dist/db.d.ts"
      ],
      "svelte-kit": [
        "./dist/svelte-kit.d.ts"
      ],
      "solid-start": [
        "./dist/solid-start.d.ts"
      ],
      "next-js": [
        "./dist/next-js.d.ts"
      ],
      "adapters/prisma": [
        "./dist/adapters/prisma.d.ts"
      ],
      "adapters/drizzle": [
        "./dist/adapters/drizzle.d.ts"
      ],
      "adapters/mongodb": [
        "./dist/adapters/mongodb.d.ts"
      ],
      "adapters/memory": [
        "./dist/adapters/memory.d.ts"
      ],
      "plugins": [
        "./dist/plugins.d.ts"
      ],
      "plugins/access": [
        "./dist/access.d.ts"
      ],
      "plugins/admin": [
        "./dist/plugins/admin.d.ts"
      ],
      "plugins/anonymous": [
        "./dist/plugins/anonymous.d.ts"
      ],
      "plugins/bearer": [
        "./dist/plugins/bearer.d.ts"
      ],
      "plugins/email-otp": [
        "./dist/plugins/email-otp.d.ts"
      ],
      "plugins/generic-oauth": [
        "./dist/plugins/generic-oauth.d.ts"
      ],
      "plugins/oauth-proxy": [
        "./dist/plugins/oauth-proxy.d.ts"
      ],
      "plugins/sso": [
        "./dist/plugins/sso.d.ts"
      ],
      "plugins/oidc-plugin": [
        "./dist/plugins/oidc-plugin.d.ts"
      ],
      "plugins/jwt": [
        "./dist/plugins/jwt.d.ts"
      ],
      "plugins/magic-link": [
        "./dist/plugins/magic-link.d.ts"
      ],
      "plugins/organization": [
        "./dist/plugins/organization.d.ts"
      ],
      "plugins/passkey": [
        "./dist/plugins/passkey.d.ts"
      ],
      "plugins/phone-number": [
        "./dist/plugins/phone-number.d.ts"
      ],
      "plugins/two-factor": [
        "./dist/plugins/two-factor.d.ts"
      ],
      "plugins/username": [
        "./dist/plugins/username.d.ts"
      ]
    }
  },
  "devDependencies": {
    "@prisma/client": "^5.22.0",
    "@types/better-sqlite3": "^7.6.12",
    "@types/pg": "^8.11.10",
    "@types/prompts": "^2.4.9",
    "@types/react": "^18.3.14",
    "better-sqlite3": "^11.6.0",
    "drizzle-orm": "^0.38.2",
    "happy-dom": "^15.11.7",
    "hono": "^4.6.13",
    "listhen": "^1.9.0",
    "mongodb": "^6.11.0",
    "mysql2": "^3.11.5",
    "next": "^15.1.2",
    "oauth2-mock-server": "^7.2.0",
    "pg": "^8.13.1",
    "prisma": "^5.22.0",
    "react": "^18.3.1",
    "react-native": "~0.74.6",
    "solid-js": "^1.9.3",
    "tarn": "^3.0.2",
    "tedious": "^18.6.1",
    "tsup": "^8.3.5",
    "typescript": "5.6.1-rc",
    "vitest": "^1.6.0",
    "vue": "^3.5.13"
  },
  "dependencies": {
    "@better-auth/utils": "0.2.3",
    "@better-fetch/fetch": "1.1.12",
    "@noble/ciphers": "^0.6.0",
    "@noble/hashes": "^1.6.1",
    "@simplewebauthn/browser": "^13.0.0",
    "@simplewebauthn/server": "^13.0.0",
    "better-call": "0.3.3",
    "defu": "^6.1.4",
    "jose": "^5.9.6",
    "kysely": "^0.27.4",
    "nanostores": "^0.11.3",
    "zod": "^3.24.1"
  },
  "overrides": {
    "whatwg-url": "^14.0.0"
  },
  "files": [
    "dist"
  ]
}
