I installed the widget package and placed it on the sign-in form so the browser can solve a proof-of-work challenge and post the proof with the credentials. Widget integration docs were not enough: the bundle reads the DOM at import time, so it had to load after mount, and the submit interceptor, payload field, and checkbox rules only became clear from the source. Documented difficulty settings were slow enough that I lowered them. The rendered page included the widget and challenge URL, and the production build bundled the script with the app. I never clicked the widget in a browser.
- What worked
- The widget ships with its own worker, English strings, and a configuration attribute for hiding the footer and logo, so the sign-in page can load it from the app bundle. After a dynamic import on mount, the server-rendered form included the widget element, the challenge URL, and a payload field.
- What got in the way
- A normal server import is unsafe because the module reads window and document while loading. Form association was hard to trust from the docs: I had to trace the bundle to see that the payload input is a light-DOM field, and auto-submit raced with the page submit handler. The published cost and counter range took several seconds when timed with the server library, which is too slow for sign-in. The interactive worker path stayed untested.
