Skip to content

The "New API token" page defaults to "no expiration" #6664

Closed
@fasterthanlime

Description

@fasterthanlime

Current Behavior

The "New API token" page defaults to "no expiration"

image

Expected Behavior

I think it should default to, like, "90 days". Or even "365 days" if you want to be conservative.

Defaults matter here. If I'm going to be irresponsible with a never-expiring token, make me do two additional clicks.

Steps To Reproduce

  1. Go to https://crates.io/settings/tokens/new
  2. Notice it defaults to no expiration

Environment

  • Browser: Microsoft Edge, for the street cred
  • OS: Windows 11, to have sound

Anything else?

Thanks for your work on this! The new form is definitely a step in the right direction.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-frontend 🐹C-enhancement ✨Category: Adding new behavior or a change to the way an existing feature works

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions