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

BUGFIX: Add buffered output for JWT printing #15

Merged
merged 3 commits into from
Nov 12, 2024
Merged

Conversation

rolandgroen
Copy link
Collaborator

Replaced println with a buffered writer when outputting the JWT to ensure the output is properly flushed. Introduced a new helper function printLineAndFlush to handle the buffered writing and flushing process.

Replaced println with a buffered writer when outputting the JWT to ensure the output is properly flushed. Introduced a new helper function `printLineAndFlush` to handle the buffered writing and flushing process.
Updated the printLineAndFlush function to return an error instead of terminating the program. Modified the main function to handle the error appropriately by logging the error and exiting when printLineAndFlush fails.
@reinkrul reinkrul marked this pull request as ready for review November 12, 2024 15:29
@reinkrul reinkrul self-requested a review November 12, 2024 15:29
@rolandgroen rolandgroen merged commit 9a22269 into main Nov 12, 2024
3 checks passed
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.

2 participants