Authentication commands — login, logout, status, token setup.
Summary
Functions
Login via browser. This is interactive — the CLI will open a browser.
Logout.
Set up an API token directly.
Check authentication status.
Types
Functions
@spec login(ClaudeWrapper.Config.t()) :: {:ok, String.t()} | {:error, term()}
Login via browser. This is interactive — the CLI will open a browser.
@spec logout(ClaudeWrapper.Config.t()) :: {:ok, String.t()} | {:error, term()}
Logout.
@spec setup_token(ClaudeWrapper.Config.t(), String.t()) :: {:ok, String.t()} | {:error, term()}
Set up an API token directly.
@spec status(ClaudeWrapper.Config.t()) :: {:ok, auth_status()} | {:error, term()}
Check authentication status.
Returns parsed status if the CLI supports JSON output, raw text otherwise.