feat: UI to reset HF token #7988
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Sometimes the user has a valid HF token saved but needs to reset. For example, they set a token w/ incorrect permissions.
This PR adds a UI to reset the token. Here are the possible states & UX for the HF tab in MM:
Screen.Recording.2025-05-05.at.3.12.51.pm.mov
Related Issues / Discussions
For whatever reason, this has popped up a lot recently in discord.
QA Instructions
If you already have a valid HF token saved, you should see the new UI where the token is displayed in a disabled input field (it's not your actual token, it's 37 letter
a
, same length as a real token).Try resetting, setting an invalid token and setting a valid token.
🚨 The
Reset
button uses the HF Hub to reset the token. This permanently deletes the token from the HF hub cache. You'll need to go back to HF to retrieve it or make a new one if you don't have it saved somewhere else. 🚨Merge Plan
n/a
Checklist
What's New
copy (if doing a release after this PR)