You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Detect and apply the actual server port for the Auth plugin at runtime.
- Add optional getPort() to IHttpServer so code can query the bound port.
- Add AuthManager.setRuntimeBaseUrl(url) to allow updating baseUrl before the auth instance is created; emits a warning and is a no-op if called after initialization.
- Update AuthPlugin to auto-detect the server port (when available) and call setRuntimeBaseUrl if the configured origin differs from the actual server URL; logs the update.
- Add unit tests covering setRuntimeBaseUrl behavior and the plugin's auto-detection logic.
- Tweak objectstack.config.ts comment to note baseUrl is auto-detected at runtime.
These changes ensure the auth instance uses the real server URL (useful when the runtime port differs from config) while preserving backward compatibility and emitting a warning if runtime updates are attempted after initialization.
0 commit comments