feat(GRO-390): restart-on-save for auth provider config #217

Merged
groombook-engineer[bot] merged 1 commits from feat/gro-392-oobe-auth-provider-bootstrap into main 2026-04-03 08:48:28 +00:00

1 Commits

Author SHA1 Message Date
groombook-engineer[bot] da6c83d425 feat(GRO-390): add reinitAuth() and call it after PUT/DELETE auth-provider
Adds reinitAuth() to auth.ts that clears the authInstance and authInitPromise
variables, then reinitializes Better-Auth from the DB config. Both PUT and
DELETE /api/admin/auth-provider now call reinitAuth() so auth changes take
effect immediately without a pod restart.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-04-03 08:37:04 +00:00