From 97dc459bfb393d63ec92a100806d2598a01d311c Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Thu, 4 Dec 2025 06:08:52 +0000 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...
+