Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable more seamless pasting of a token - add a "clear" button or preselect the jwt content in textarea #656

Open
nneul opened this issue Apr 21, 2023 · 6 comments

Comments

@nneul
Copy link

nneul commented Apr 21, 2023

Please consider adding a 'Clear JWT' button of some sort to the entry box. My usual flow with jwt.io is to open site, grab a token in clipboard, go to paste it in, then realize I have to clear out what's there. I either have to paste in the new value after what's there and clear it manually after carefully picking the point where one stops and the other starts - or select and have it overwrite clipboard contents.

I'd love to be able to just click a button to clear it right before I paste it in.

Alternatively - do a setSelectionRange() call on the text area after page load. Then content could be cleared in one delete or keyboard paste.

@stale
Copy link

stale bot commented Aug 13, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you have not received a response for our team (apologies for the delay) and this is still a blocker, please reply with additional information or just a ping. Thank you for your contribution! 🙇‍♂️

@stale stale bot added the closed:stale label Aug 13, 2023
@nneul
Copy link
Author

nneul commented Aug 13, 2023

Still a legit request, and should be trivial addition to the app.

@stale stale bot removed the closed:stale label Aug 13, 2023
@hellqvistjohan
Copy link

@nneul Before pasting, click in the box and do a ctrl+a.
I would love to see the demo token be preselected, to make it easy to just do a paste to replace it with my token

@nneul
Copy link
Author

nneul commented Jan 26, 2024

The problem with doing that is on linux, selecting that with control-a replaces the previously selected default clipboard value. (Different behavior on windows.)

@DanOnCall
Copy link
Contributor

Howdy, @nneul! First of all, apologies that we didn't get back to your feedback and feature request. Thanks for taking the time before to open this issue.

I am currently working on the next version of jwt.io! I like this idea and I'll include it as a feature in the new version. I can share a preview of what's coming up with you: My current proposal internally is that we split the widget that does decoding, signature verification, and decoding all at once into three separate widgets so that we can offer a better user experience with more functionality such as better contextual, actionable error messages and more UI functionality like copy and clear field buttons.

What do you think about this approach?

Btw: Do you ever use the query parameters to pass tokens to jwt.io?

@nneul
Copy link
Author

nneul commented Jun 3, 2024

I like the split idea. I've never used the query parameters, but that sounds like it could be quite useful if directing to a local instance (such as embedded into an application for diagnostics of current session JWT).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants