--- name: better-auth-explain-error description: Explain Better Auth error codes and provide solutions with code examples argument-hint: '[error_code or error_message]' --- # Explain Better Auth Error Provide a comprehensive explanation of the given Better Auth error code or error message: 1. Accept the error code or full error message from the arguments 2. Explain in plain English what the error means 3. List common causes of this error 4. Provide specific solutions and handling recommendations 5. Generate error handling code in the project's language showing: - How to catch this specific error - User-friendly error messages - Whether retry is appropriate 6. Mention related error codes the developer should be aware of 7. Include a link to the relevant Better Auth documentation Focus on actionable solutions and production-ready error handling patterns. ## See also (related skills — Better Auth family) If your issue relates to: - **Better Auth integration overview** — check `better-auth` if appropriate. - **best-practices guide** — check `better-auth-best-practices` if appropriate. - **create the auth layer (initial scaffolding)** — check `better-auth-create-auth` if appropriate. - **email/password, password reset, verification policies** — check `better-auth-email-password` if appropriate. - **organization/team plugin** — check `better-auth-organization` if appropriate. - **OAuth/email/magic-link/social provider config** — check `better-auth-providers` if appropriate. - **rate limit, CSRF, trusted origins, secrets, OAuth security** — check `better-auth-security` if appropriate. - **twoFactor plugin enforcement** — check `better-auth-two-factor` if appropriate. - **wiring Better Auth into a Tauri desktop app** — check `better-auth-tauri-setup` if appropriate. - **Tauri-specific gotchas (cookies, deep links, macOS, 404 callbacks)** — check `better-auth-tauri-pitfalls` if appropriate. - **reproduction guide for the better-auth-ui crash on Tauri v2** — check `sawy-better-auth-ui-tauri-repro` if appropriate.