feat(api): add ManagementTokenRequester interface for management token request endpoints

This commit is contained in:
Luis Pater
2025-12-29 02:42:29 +08:00
parent 457924828a
commit ee171bc563
2 changed files with 67 additions and 0 deletions

View File

@@ -59,6 +59,11 @@ func NewHandler(cfg *config.Config, configFilePath string, manager *coreauth.Man
}
}
// NewHandler creates a new management handler instance.
func NewHandlerWithoutConfigFilePath(cfg *config.Config, manager *coreauth.Manager) *Handler {
return NewHandler(cfg, "", manager)
}
// SetConfig updates the in-memory config reference when the server hot-reloads.
func (h *Handler) SetConfig(cfg *config.Config) { h.cfg = cfg }