Added auth mode status to health check endpoint.
- Introduced auth_mode in health check response - Updated App.tsx to handle guest mode logic
This commit is contained in:
@@ -61,10 +61,11 @@ function App() {
|
||||
try {
|
||||
const status = await getAuthStatus();
|
||||
if (status.core_version || status.api_version) {
|
||||
const isGuestMode = status.auth_mode === 'disabled' || useAuthStore.getState().isGuestMode;
|
||||
// Update version info while maintaining login state
|
||||
useAuthStore.getState().login(
|
||||
token,
|
||||
useAuthStore.getState().isGuestMode,
|
||||
isGuestMode,
|
||||
status.core_version,
|
||||
status.api_version
|
||||
);
|
||||
|
@@ -44,6 +44,7 @@ export type LightragStatus = {
|
||||
update_status?: Record<string, any>
|
||||
core_version?: string
|
||||
api_version?: string
|
||||
auth_mode?: 'enabled' | 'disabled'
|
||||
}
|
||||
|
||||
export type LightragDocumentsScanProgress = {
|
||||
|
Reference in New Issue
Block a user