[PR #162] [MERGED] feat: add onError and throw error options for APIError #3133

Closed
opened 2026-03-13 10:41:05 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/162
Author: @Bekacru
Created: 10/13/2024
Status: Merged
Merged: 10/13/2024
Merged by: @Bekacru

Base: mainHead: error-handling


📝 Commits (3)

📊 Changes

11 files changed (+103 additions, -46 deletions)

View changed files

dev/bun/_auth.ts (+0 -21)
📝 dev/bun/auth.ts (+17 -0)
dev/bun/client.ts (+15 -0)
📝 dev/bun/index.ts (+4 -5)
📝 docs/components/sidebar-content.tsx (+2 -2)
📝 docs/content/docs/concepts/api.mdx (+17 -9)
docs/content/docs/concepts/secondary-storage.mdx (+0 -5)
📝 docs/content/docs/reference/options.mdx (+17 -0)
📝 package.json (+1 -0)
📝 packages/better-auth/src/api/index.ts (+11 -3)
📝 packages/better-auth/src/types/options.ts (+19 -1)

📄 Description

No description provided


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/162 **Author:** [@Bekacru](https://github.com/Bekacru) **Created:** 10/13/2024 **Status:** ✅ Merged **Merged:** 10/13/2024 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `error-handling` --- ### 📝 Commits (3) - [`50e9cd5`](https://github.com/better-auth/better-auth/commit/50e9cd5438744c5cf4855d333b5ec209a0f81a9a) feat: onAPIError option - [`d2a63aa`](https://github.com/better-auth/better-auth/commit/d2a63aabe7bd3d2e17f79c202f0a0a5aeb1de81c) docs - [`dd6a49b`](https://github.com/better-auth/better-auth/commit/dd6a49b70d6aad4f39e6270b91030234ab950930) docs ### 📊 Changes **11 files changed** (+103 additions, -46 deletions) <details> <summary>View changed files</summary> ➖ `dev/bun/_auth.ts` (+0 -21) 📝 `dev/bun/auth.ts` (+17 -0) ➕ `dev/bun/client.ts` (+15 -0) 📝 `dev/bun/index.ts` (+4 -5) 📝 `docs/components/sidebar-content.tsx` (+2 -2) 📝 `docs/content/docs/concepts/api.mdx` (+17 -9) ➖ `docs/content/docs/concepts/secondary-storage.mdx` (+0 -5) 📝 `docs/content/docs/reference/options.mdx` (+17 -0) 📝 `package.json` (+1 -0) 📝 `packages/better-auth/src/api/index.ts` (+11 -3) 📝 `packages/better-auth/src/types/options.ts` (+19 -1) </details> ### 📄 Description _No description provided_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-13 10:41:05 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#3133