@mcp-b/char 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1102,6 +1102,11 @@ var CharAgentElement = class extends HTMLElement {
1102
1102
  */
1103
1103
  _postAuth(iframeOrigin) {
1104
1104
  if (!this._pendingAuth || !this._iframe?.contentWindow) return;
1105
+ if (!this._pendingAuth.ticketAuth && !this._pendingAuth.anthropicApiKey && !this._pendingAuth.idToken) {
1106
+ console.error("[Char] _postAuth called but _pendingAuth has no auth credentials");
1107
+ this._pendingAuth = null;
1108
+ return;
1109
+ }
1105
1110
  const message = this._pendingAuth.ticketAuth ? {
1106
1111
  type: "char-auth",
1107
1112
  ticketAuth: this._pendingAuth.ticketAuth