[PR #5403] [CLOSED] fix(org): removed noisy logger.info triggered by useActiveOrganization #22885

Closed
opened 2026-04-15 21:21:03 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5403
Author: @Konixy
Created: 10/18/2025
Status: Closed

Base: canaryHead: fix/remove_logger_in_organization_endpoint


📝 Commits (10+)

  • bb5513d Reapply "chore: bump tailwindcss to v4 (#4681)"
  • c335407 fix: refresh secondary storage sessions on user update (#4522)
  • c6e5dab fix(adapter): returning null as string for optional id references (#4713)
  • 3ec47de chore(demo): fix globals.css (#4725)
  • 11dbfdb feat(email-otp): allow returning undefined in generateOTP (#4723)
  • c7f6990 chore(demo): properly pass colors to variables (#4729)
  • 43e0e46 chore: remove @ts-expect-error (#4734)
  • 7efd139 fix: allow disable database transaction (#4733)
  • d35096d fix(stripe): onCustomerCreate should be called even if update user isn't returned (#4716)
  • c6e3370 feat(discord): allow specification of permissions (#4717)

📊 Changes

584 files changed (+25668 additions, -8948 deletions)

View changed files

.github/workflows/branch-rules.yml (+0 -36)
📝 .github/workflows/ci.yml (+2 -2)
📝 .github/workflows/e2e.yml (+6 -5)
.github/workflows/main-protect.yml (+0 -18)
📝 .github/workflows/preview.yml (+2 -2)
📝 .github/workflows/release.yml (+11 -6)
📝 biome.json (+4 -2)
demo/expo-example/.env.example (+7 -0)
demo/expo-example/.gitignore (+20 -0)
demo/expo-example/README.md (+15 -0)
demo/expo-example/app.config.ts (+55 -0)
demo/expo-example/assets/bg-image.jpeg (+0 -0)
demo/expo-example/assets/fonts/SpaceMono-Regular.ttf (+0 -0)
demo/expo-example/assets/icon.png (+0 -0)
demo/expo-example/assets/images/adaptive-icon.png (+0 -0)
demo/expo-example/assets/images/favicon.png (+0 -0)
demo/expo-example/assets/images/logo.png (+0 -0)
demo/expo-example/assets/images/partial-react-logo.png (+0 -0)
demo/expo-example/assets/images/react-logo.png (+0 -0)
demo/expo-example/assets/images/react-logo@2x.png (+0 -0)

...and 80 more files

📄 Description

In crud-org.ts, there is a logger.info call that pollutes the server console when the user is not using an active organization and useActiveOrganization is called, which is very annoying.


Summary by cubic

Removed a noisy server log in the organization route that fired when useActiveOrganization ran without an active org, stopping console spam. Also added an Expo demo and refreshed docs and CI to improve developer experience.

  • Bug Fixes

    • Removed the logger.info call in the organization CRUD route to prevent unnecessary console output.
    • Cleaned up Tailwind v4 class usage in the Next.js demo.
  • New Features

    • Added an Expo demo using @better-auth/expo with API Router (sign-in, sign-up, dashboard).
    • Introduced docs AI chat modal and API routes for chat, analytics, feedback, and support, plus an anchor-scroll fix.
    • Updated Next.js demo with Tailwind v4 styles and SSO plugin support.
    • CI/tooling updates: pinned actions/setup-node, updated cache action, removed redundant branch protection workflows, added a noDebugger lint rule, and expanded docker-compose with additional Postgres/MySQL services.

🔄 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/5403 **Author:** [@Konixy](https://github.com/Konixy) **Created:** 10/18/2025 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `fix/remove_logger_in_organization_endpoint` --- ### 📝 Commits (10+) - [`bb5513d`](https://github.com/better-auth/better-auth/commit/bb5513d216b996206d9e21b21cdee20f4d98fd60) Reapply "chore: bump tailwindcss to v4 (#4681)" - [`c335407`](https://github.com/better-auth/better-auth/commit/c33540765860569a016574cb9e9cdc74f0ecfec5) fix: refresh secondary storage sessions on user update (#4522) - [`c6e5dab`](https://github.com/better-auth/better-auth/commit/c6e5dab8ab40386ac033e15e2695832105f66edf) fix(adapter): returning null as string for optional id references (#4713) - [`3ec47de`](https://github.com/better-auth/better-auth/commit/3ec47dedbd6f2c87f337a9fcbe93d70cc39d735d) chore(demo): fix globals.css (#4725) - [`11dbfdb`](https://github.com/better-auth/better-auth/commit/11dbfdb0636282cf2a6dfeb8999ea7bc06336b76) feat(email-otp): allow returning undefined in `generateOTP` (#4723) - [`c7f6990`](https://github.com/better-auth/better-auth/commit/c7f6990280dce56c872ad49523a51e384ddfcec6) chore(demo): properly pass colors to variables (#4729) - [`43e0e46`](https://github.com/better-auth/better-auth/commit/43e0e4664445c1cd0007b095a526ad4b7ef4e02d) chore: remove @ts-expect-error (#4734) - [`7efd139`](https://github.com/better-auth/better-auth/commit/7efd139b743ad7fd78621c6bd7c45ec6c93398bc) fix: allow disable database transaction (#4733) - [`d35096d`](https://github.com/better-auth/better-auth/commit/d35096dbe0915ae176083afd4265b2659e95214d) fix(stripe): onCustomerCreate should be called even if update user isn't returned (#4716) - [`c6e3370`](https://github.com/better-auth/better-auth/commit/c6e33705135c02e08e0fc661bfef388455f6c2df) feat(discord): allow specification of permissions (#4717) ### 📊 Changes **584 files changed** (+25668 additions, -8948 deletions) <details> <summary>View changed files</summary> ➖ `.github/workflows/branch-rules.yml` (+0 -36) 📝 `.github/workflows/ci.yml` (+2 -2) 📝 `.github/workflows/e2e.yml` (+6 -5) ➖ `.github/workflows/main-protect.yml` (+0 -18) 📝 `.github/workflows/preview.yml` (+2 -2) 📝 `.github/workflows/release.yml` (+11 -6) 📝 `biome.json` (+4 -2) ➕ `demo/expo-example/.env.example` (+7 -0) ➕ `demo/expo-example/.gitignore` (+20 -0) ➕ `demo/expo-example/README.md` (+15 -0) ➕ `demo/expo-example/app.config.ts` (+55 -0) ➕ `demo/expo-example/assets/bg-image.jpeg` (+0 -0) ➕ `demo/expo-example/assets/fonts/SpaceMono-Regular.ttf` (+0 -0) ➕ `demo/expo-example/assets/icon.png` (+0 -0) ➕ `demo/expo-example/assets/images/adaptive-icon.png` (+0 -0) ➕ `demo/expo-example/assets/images/favicon.png` (+0 -0) ➕ `demo/expo-example/assets/images/logo.png` (+0 -0) ➕ `demo/expo-example/assets/images/partial-react-logo.png` (+0 -0) ➕ `demo/expo-example/assets/images/react-logo.png` (+0 -0) ➕ `demo/expo-example/assets/images/react-logo@2x.png` (+0 -0) _...and 80 more files_ </details> ### 📄 Description In [`crud-org.ts`](https://github.com/better-auth/better-auth/blob/canary/packages/better-auth/src/plugins/organization/routes/crud-org.ts#L711), there is a `logger.info` call that pollutes the server console when the user is not using an active organization and `useActiveOrganization` is called, which is very annoying. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Removed a noisy server log in the organization route that fired when useActiveOrganization ran without an active org, stopping console spam. Also added an Expo demo and refreshed docs and CI to improve developer experience. - **Bug Fixes** - Removed the logger.info call in the organization CRUD route to prevent unnecessary console output. - Cleaned up Tailwind v4 class usage in the Next.js demo. - **New Features** - Added an Expo demo using @better-auth/expo with API Router (sign-in, sign-up, dashboard). - Introduced docs AI chat modal and API routes for chat, analytics, feedback, and support, plus an anchor-scroll fix. - Updated Next.js demo with Tailwind v4 styles and SSO plugin support. - CI/tooling updates: pinned actions/setup-node, updated cache action, removed redundant branch protection workflows, added a noDebugger lint rule, and expanded docker-compose with additional Postgres/MySQL services. <!-- End of auto-generated description by cubic. --> --- <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-04-15 21:21:03 -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#22885