Skip to content

Commit

Permalink
Fix token expiration prompt for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
royroyee committed Mar 22, 2024
1 parent 0c6fcae commit 81f8676
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/token/token_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func init() {
func promptForToken() (auth.APITokenRequest, error) {
var tokenRequest auth.APITokenRequest
tokenRequest.Name = utils.PromptForRequiredInput("Token name:")
if utils.PromptForBool("Limit: ") {
if utils.PromptForBool("Set expiration for token?: ") {
tokenRequest.ExpiresAt = utils.TimeFormat(utils.PromptForIntInput("Valid through (in days): "))
} else {
tokenRequest.ExpiresAt = nil
Expand Down

0 comments on commit 81f8676

Please sign in to comment.