cli icon indicating copy to clipboard operation
cli copied to clipboard

Login flow of `auth login` using `REPLICATE_API_TOKEN`

Open mehmettokgoz opened this issue 1 year ago • 0 comments

AFAIK, there is no other method available aside from passing the token via stdin like following.

echo $REPLICATE_API_TOKEN | replicate auth login --token-stdin

I'm curious about why the token isn't an argument of the login command. Are there any other factors besides security considerations like exposing it in logs?

Alternatively, CLI could access $REPLICATE_API_TOKEN environment variable and extract the token automatically without requiring any explicit argument. This approach provides a more secure and seamless authentication process for users.

mehmettokgoz avatar Mar 15 '24 19:03 mehmettokgoz