Skip to content

better-auth

Pack path: better-auth/

  • Better Auth Email Password And Sessions — Use when implementing email and password auth or tuning session behavior in Better Auth. Covers sign-up and sign-in flows, password reset boundaries, cookie-backed sessions, refresh policy, cache strategy, stateless mode, and session-sensitive security tradeoffs.
  • Better Auth Next.js Integration And Route Protection — Use when integrating Better Auth with Next.js App Router or Pages Router. Covers toNextJsHandler, auth route mounting, client setup, RSC and server action boundaries, proxy or middleware-based protection, and session checks across modern Next.js versions.
  • Better Auth Overview And Setup — Use when setting up Better Auth for the first time or routing Better Auth work to the right follow-up skill. Covers package installation, secrets, base URL, auth handler mounting, client creation, and plugin-aware setup decisions.
  • Better Auth Plugins Organizations And SSO — Use when extending Better Auth with plugins, especially organization management and enterprise SSO. Covers plugin wiring on server and client, CLI migration flow, organization roles and access control, and deciding when SSO or organization plugins belong in the auth design.
  • Better Auth Social Providers And OAuth — Use when configuring social sign-in or provider-based OAuth flows in Better Auth. Covers social provider config, signIn.social, account linking, provider access tokens, generic OAuth, custom scopes, profile mapping, and redirect handling.