@objectstack/plugin-auth 5.1.0 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -625,6 +625,10 @@ var AuthManager = class {
625
625
  },
626
626
  // better-auth plugins — registered based on AuthPluginConfig flags
627
627
  plugins,
628
+ // Database hooks (fired by better-auth's adapter writes — these run
629
+ // for SSO JIT-provisioning too, unlike kernel-level ObjectQL
630
+ // middleware which better-auth's adapter bypasses).
631
+ ...this.config.databaseHooks ? { databaseHooks: this.config.databaseHooks } : {},
628
632
  // Trusted origins for CSRF protection (supports wildcards like "https://*.example.com")
629
633
  // Auto-includes origins from CORS_ORIGIN env var so CORS and CSRF stay in sync.
630
634
  ...(() => {