diff --git a/examples/restricted-api.html b/examples/restricted-api.html index 3c6f094..f48ce94 100644 --- a/examples/restricted-api.html +++ b/examples/restricted-api.html @@ -10,259 +10,116 @@

🔐 Restricted API Demo

-

Demonstrates iframe-based authentication using postMessage

+

Demonstrates authentication for protected resources

-

Authentication Modes

- - - -
- -
-

API Tests

- - +

API Mode (iframe)

+

For SPAs and fetch() calls - shows auth in an iframe overlay:

+ + +
- -
-

Message Events

-
Waiting for messages...
+

Browser Mode (full page)

+

For traditional apps - redirects to auth page, then back:

+ + +
+ +
Click a button to test...
+