Implemented auth app authentication in API mode (if loading the app itself wasn't blocked). Removed unnecessary toasts when entering restricted pages.

This commit is contained in:
Leo Vasanko
2025-12-02 15:25:31 +00:00
parent 2c777661b8
commit d1a7a53c19
9 changed files with 243 additions and 65 deletions
+7 -5
View File
@@ -82,20 +82,22 @@
case 'auth-error':
showStatus(`${data.message || 'Authentication failed'}`, data.cancelled ? 'info' : 'error');
if (data.cancelled) {
hideAuthIframe();
currentApiCall = null;
}
// Don't hide iframe on error - let user retry
break;
case 'auth-cancelled':
showStatus(`Operation cancelled: ${data.message || ''}`, 'info');
// Don't hide iframe - deprecated message type
break;
case 'auth-back':
showStatus('User clicked Back', 'info');
hideAuthIframe();
currentApiCall = null;
break;
case 'auth-close-request':
// Iframe wants to be closed
// Iframe wants to be closed (legacy)
hideAuthIframe();
break;
}