Files
StyleRef-styleref-comfyui/web
StyleRefandClaude Opus 5 8beb0e19a8 fix(auth): offer a Sign in button instead of the raw API 401
The style browser surfaced the REST 401 verbatim, which told people to send
an `Authorization: Bearer` header and pointed at styleref.io/mcp — neither of
which anyone can act on from inside ComfyUI.

- A signed-out lane now renders one actionable row: a Sign in button running
  the same browser OAuth flow as the Login node, plus a link to the setup
  guide. Headless boxes still get the full instructions in the overlay, since
  they cannot just click.
- /styleref/saved and /styleref/my-styles map an API 401 to `signedIn: false`
  rather than echoing the message. Expired or revoked stored credentials are
  the signed-out state, so the dialog should offer sign-in, not an error.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-31 10:57:10 +02:00
..