[PR #5945] fix(odic-provider): default options #14587

Closed
opened 2026-04-13 09:32:10 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/better-auth/better-auth/pull/5945

State: closed
Merged: Yes


Summary by cubic

Set sane defaults for the OIDC provider using defu and expose the resolved config via provider.options. Enables dynamic client registration by default and ensures all checks use the merged options.

  • New Features

    • provider.options getter returns the effective OIDC config.
    • Default allowDynamicClientRegistration set to true.
    • Snapshot test added to validate default options.
  • Refactors

    • Replaced manual option merging with defu and centralized to opts.
    • Switched all checks to use opts (PKCE, JWT signing, claims, client ID/secret generation).
    • metadata.SERVER_ONLY now reflects allowDynamicClientRegistration.

Written for commit 9ce915fcdb. Summary will update automatically on new commits.

**Original Pull Request:** https://github.com/better-auth/better-auth/pull/5945 **State:** closed **Merged:** Yes --- <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Set sane defaults for the OIDC provider using defu and expose the resolved config via provider.options. Enables dynamic client registration by default and ensures all checks use the merged options. - **New Features** - provider.options getter returns the effective OIDC config. - Default allowDynamicClientRegistration set to true. - Snapshot test added to validate default options. - **Refactors** - Replaced manual option merging with defu and centralized to opts. - Switched all checks to use opts (PKCE, JWT signing, claims, client ID/secret generation). - metadata.SERVER_ONLY now reflects allowDynamicClientRegistration. <sup>Written for commit 9ce915fcdbe41ebc9e472733f2fa175d3a82b602. Summary will update automatically on new commits.</sup> <!-- End of auto-generated description by cubic. -->
GiteaMirror added the pull-request label 2026-04-13 09:32:10 -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#14587