From 7c82727d285d92ca88c77d9544b9e33ecc9af3cc Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Wed, 3 Dec 2025 18:08:52 -0600 Subject: [PATCH] Fixed and simplified examples. --- examples/restricted-api.html | 293 +++++++++-------------------------- 1 file changed, 75 insertions(+), 218 deletions(-) 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...
+