Skip to content

Support authenticated endpoints in CLI #12

Description

@austin-smith

Context

The user-signup work introduces account-owned endpoints. Browser inspector/control APIs now require the owning Better Auth session for endpoints with ownerUserId.

The whlol CLI currently uses plain unauthenticated fetch calls, so it can only operate on anonymous endpoints. Account-owned endpoints created while signed in cannot currently be used from the CLI.

Affected commands

  • whlol tail <endpointId>
  • whlol forward <endpointId> --to <url>
  • whlol replay <endpointId> ...

These commands will appear anonymous to the server and fail for account-owned endpoints, typically as 404 Endpoint not found.

Desired outcome

Design and implement a CLI-compatible access model for account-owned endpoints. Possible directions:

  • CLI auth/session flow
  • Endpoint-scoped access tokens for CLI use
  • Another explicit server-supported access mechanism for account-owned endpoint operations

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions