Skip to content

Commit 06b33fd

Browse files
committed
feat(login): treat coder token as a secret
1 parent c5367c2 commit 06b33fd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cli/login.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@ func (r *RootCmd) login() *serpent.Command {
288288

289289
sessionToken, err = cliui.Prompt(inv, cliui.PromptOptions{
290290
Text: "Paste your token here:",
291+
Secret: true,
291292
Validate: func(token string) error {
292293
client.SetSessionToken(token)
293294
_, err := client.User(ctx, codersdk.Me)

0 commit comments

Comments
 (0)