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

Make it easier to copy a test token to the clipboard #315

Closed
novemberborn opened this issue Jun 17, 2021 · 4 comments · Fixed by #317
Closed

Make it easier to copy a test token to the clipboard #315

novemberborn opened this issue Jun 17, 2021 · 4 comments · Fixed by #317
Labels
enhancement An enhancement or improvement to the SDK that could not be otherwise categorized as a new feature

Comments

@novemberborn
Copy link

Describe the problem you'd like to have solved

Having to select the access token is cumbersome. It should be easier to copy a test token to the clipboard.

Describe the ideal solution

auth0 test token | pbcopy

The CLI detects when stdout is not a TTY. When this is the case, it writes the access token to stdout. Any other messages are written to stderr. On macOS this should then allow me to automatically copy the access token to my clipboard, after which I can use it to make authenticated requests.

Alternatives and current work-arounds

Select the access token and copy it manually.

@Widcket Widcket added the enhancement An enhancement or improvement to the SDK that could not be otherwise categorized as a new feature label Jun 17, 2021
@Widcket
Copy link
Contributor

Widcket commented Jun 17, 2021

Hi @novemberborn, thanks for raising this. This is something we want to do, though we have no ETA. I'll leave this issue open to track it.

@Widcket
Copy link
Contributor

Widcket commented Jun 23, 2021

@novemberborn this is now out in v0.9.0.

@novemberborn
Copy link
Author

@Widcket amazing!

@AndrewRayCode
Copy link

How is this feature supposed to work? None of these get the access token:

auth0 test login tenant --no-input --domain domain | echo
auth0 test login tenant --no-input --domain domain | xargs echo
auth0 test login tenant --no-input --domain domain | pbcopy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement or improvement to the SDK that could not be otherwise categorized as a new feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants