authOrigin, once, ahead of time.
Build the page
The page is built from the@avokjs/core/auth-popup mountable. Bake your operator config into a
small entry that calls mountAuthPopup() (or renders <AuthPopup> in React), then run the
hardened-page emitter:
index.html. No server, no external assets.
Host that file on any static host at your authOrigin.
What the page does
One page services both request kinds, dispatching on the request:- authorize: proves the account to a connecting app.
- sign: shows a consent screen, runs the passkey ceremony, and signs.
How replies are trusted
The SDK’s web channel opens the page withwindow.open(authOrigin), posts the request in, and
accepts a reply only when both of these hold:
event.sourceis the exact popup window it opened, andevent.originequalsnew URL(authOrigin).origin.
authOrigin on the connection. See Choose your signing
path.