Skip to content

fix: bridge#3

Merged
olliethedev merged 3 commits intomainfrom
fix/bridge-1
Mar 11, 2026
Merged

fix: bridge#3
olliethedev merged 3 commits intomainfrom
fix/bridge-1

Conversation

@olliethedev
Copy link
Collaborator

@olliethedev olliethedev commented Mar 11, 2026

Note

Medium Risk
Changes the override-merging behavior and adds new auth/org hooks and mutators, which could affect routing, feature flags, and API calls if consumers relied on the previous merge semantics. Risk is moderated by extensive new Vitest coverage and CI test execution.

Overview
Fixes BetterAuthPluginProvider so auth-specific configuration is sourced only from authOverrides (no longer overridden by account/org plugin overrides), including basePath/baseURL trimming, localization/viewPaths merging, feature flags, and navigation settings.

Extends the bridge with new normalized options and API wiring: emailVerification now supports { otp?: boolean } normalization, credentials defaults usernameRequired, adds mutators.updateTeam (POST /organization/update-team), and adds organization/team hooks (useListTeams, useListTeamMembers via POST, useListUserTeams). Also exposes localizeErrors (default true) and updates AuthPluginOverrides types accordingly.

Adds a Vitest test suite covering override routing, normalization, mutator/hook endpoints, plus introduces vitest/happy-dom/Testing Library deps, vitest.config.ts, and a GitHub Actions workflow to run pnpm test on PRs; bumps package version to 1.2.2.

Written by Cursor Bugbot for commit 83610d1. This will update automatically on new commits. Configure here.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

@olliethedev olliethedev merged commit 5f90ad6 into main Mar 11, 2026
2 checks passed
@olliethedev olliethedev deleted the fix/bridge-1 branch March 11, 2026 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant