diff --git a/command/auth.go b/command/auth.go index e9c00da3e2..9b1ae4baf9 100644 --- a/command/auth.go +++ b/command/auth.go @@ -228,7 +228,11 @@ func (c *AuthCommand) Run(args []string) int { policies = append(policies, v.(string)) } - output := "Successfully authenticated!" + output := "Successfully authenticated! You are now logged in." + if method != "" { + output += "\nThe token below is already saved in the session. You do not" + output += "\nneed to \"vault auth\" again with the token." + } output += fmt.Sprintf("\ntoken: %s", secret.Data["id"]) output += fmt.Sprintf("\ntoken_duration: %s", secret.Data["ttl"].(json.Number).String()) if len(policies) > 0 {