Skip to content

fix: restore login-once auth flow via leadbay_login tool#2

Merged
milstan merged 1 commit intomainfrom
milstan/check-api-key-setup
Apr 17, 2026
Merged

fix: restore login-once auth flow via leadbay_login tool#2
milstan merged 1 commit intomainfrom
milstan/check-api-key-setup

Conversation

@milstan
Copy link
Copy Markdown
Contributor

@milstan milstan commented Apr 17, 2026

Summary

  • Restores the username/password login flow that was silently removed in 5e94ab5 when adapting to the OpenClaw plugin API
  • Adds a leadbay_login tool that accepts email + password, authenticates via POST /auth/login, and stores the bearer token in-memory — no credentials persisted
  • Removes the manual API token configuration (token field from plugin config schema) since Leadbay doesn't use API keys
  • All other tools now return a clear "call leadbay_login first" error if used before authenticating

Test plan

  • npm run build compiles cleanly
  • Load plugin with only region configured → all tools register → agent calls leadbay_login with credentials → subsequent API calls work
  • Verify bad credentials return a clear error message

🤖 Generated with Claude Code

The OpenClaw plugin API adaptation (5e94ab5) silently removed the
username/password login flow and replaced it with manual API token
configuration — a concept that doesn't exist in Leadbay.

Restore the login flow by registering a leadbay_login tool that
accepts email + password, authenticates via POST /auth/login, and
stores the bearer token in-memory. No credentials are persisted.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@milstan milstan merged commit b4eaa7e into main Apr 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant