Skip to main content

Module auth

Module auth 

Source
Expand description

API token resolution.

Supports three sources (in precedence order): explicit token, the LINEAR_API_TOKEN environment variable, and ~/.linear_api_token file.

Functionsยง

auto_token
Resolve a Linear API token with precedence: env var -> file. (CLI flag takes highest precedence but is handled at the CLI layer.)
token_from_env
Resolve a Linear API token from the environment variable LINEAR_API_TOKEN.
token_from_file
Resolve a Linear API token from the filesystem. Reads ~/.linear_api_token (linearis-compatible).