Skip to content
3 changes: 2 additions & 1 deletion cli/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,8 @@ func (r *RootCmd) login() *serpent.Command {
}

sessionToken, err = cliui.Prompt(inv, cliui.PromptOptions{
Text: "Paste your token here:",
Text: "Paste your token here:",
Secret: true,
Validate: func(token string) error {
client.SetSessionToken(token)
_, err := client.User(ctx, codersdk.Me)
Expand Down