Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Merged
VojtechVitek merged 2 commits into
masterfrom
Print-token-to-stdout-the-rest-to-stderr
Sep 24, 2024
Merged

Add silent mode, print token to stdout and info to stderr#5
VojtechVitek merged 2 commits into
masterfrom
Print-token-to-stdout-the-rest-to-stderr

Conversation

@VojtechVitek

@VojtechVitek VojtechVitek commented Sep 23, 2024

Copy link
Copy Markdown
Member

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