This simulates the parent application authenticating with the shared backend.
Test Deep Linking:
Manual Auth:
1. Available Routes:
/embed/notes: Renders the full notepad/editor./embed/notes?noteId=XXX: Renders a specific note directly./embed/quick-add: Renders a standalone task creation form.2. Authentication Protocol:
The parent application must send a postMessage to the iframe immediately after the
iframe loads (or whenever auth state changes).
iframe.contentWindow.postMessage({
type: "TASGRID_AUTH",
token: "YOUR_POCKETBASE_TOKEN",
user: { /* optional PB user record */ }
}, "*");
3. Responsiveness:
Both routes are designed to be fluid. Ensure your iframe container has defined dimensions; the content will expand to fill it.
/embed/notes
/embed/quick-add