Loading...
+{{ loadingMessage }}
+diff --git a/examples/restricted-api.html b/examples/restricted-api.html index da3e8de..9a5494f 100644 --- a/examples/restricted-api.html +++ b/examples/restricted-api.html @@ -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; } diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 3f3ec29..c9455a0 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -2,28 +2,184 @@
Loading...
+{{ loadingMessage }}
+