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

Add silent mode, print token to stdout and info to stderr #5

Merged
merged 2 commits into from
Sep 24, 2024

Conversation

VojtechVitek
Copy link
Member

@VojtechVitek VojtechVitek commented Sep 23, 2024

Print token only.

This is useful for assigning the JWT token directly to a shell variable:

$ jwtutil -secret=$SECRET -encode -claims='{"service":"api"}' 2>/dev/null

or

$ jwtutil -silent -secret=$SECRET -encode -claims='{"service":"api"}'

@VojtechVitek VojtechVitek changed the title Print token to stdout, the rest to stderr Add silent mode, print token to stdout and info to stderr Sep 24, 2024
@VojtechVitek VojtechVitek merged commit b976a65 into master Sep 24, 2024
@VojtechVitek VojtechVitek deleted the Print-token-to-stdout-the-rest-to-stderr branch September 24, 2024 09:41
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

Successfully merging this pull request may close these issues.

1 participant