Documentation
¶
Overview ¶
Package auth obtains the access token a plugin sends to the API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Token ¶
Token returns LFED_TOKEN when the lfed CLI exported it. Otherwise it runs `<LFED_REEXEC> auth token`, falling back to `lfed` on PATH, so a plugin works standalone during development. the lfed CLI exports an empty LFED_TOKEN when the user is logged out, so this is the normal path for the login hint. The child's stderr is captured and returned as the error, with the child's `lfed: ` prefix removed, so the plugin prints the message once.
Types ¶
This section is empty.