Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChooseAuthMethod ¶
func ExistingToken ¶
func ExistingToken() error
func GuardEnvToken ¶ added in v1.2.0
func GuardEnvToken() error
GuardEnvToken refuses a login when a token environment variable is set. Every login path writes to the config file, but Resolve() prefers the environment — so the write would be dead on arrival. Previously these paths verified the pasted token, skipped the save, and still printed "Authenticated as ...", which is why a user with a stale VC_TOKEN could log in repeatedly and never change anything.
Callers must invoke this *before* prompting, so the user isn't asked to paste a token or complete a browser flow that is going to be discarded.
Types ¶
This section is empty.