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 more verbose logs for auth #25

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

erquhart
Copy link

Adds some verbose logs that were useful for me, but they may reveal more internal details than desired. Feel free to close or request changes.

@erquhart erquhart force-pushed the add-auth-verbose-logs branch from 1d97e74 to 2dec0b0 Compare January 23, 2025 01:56
newAuth.state === "waitingForServerConfirmationOfFreshToken"
? {
...newAuth,
token: newAuth.token.slice(0, 7) + "..." + newAuth.token.slice(-7),
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is meant to help clarify which token is being used. I don't believe showing the first and last 7 characters of the jwt will present a security risk, but wanted to call this out in case it does. We also may just need the last 7. This is also done in one other place in the PR for comparison.

@erquhart erquhart force-pushed the add-auth-verbose-logs branch from 2dec0b0 to ac8a03a Compare January 24, 2025 20:35
@erquhart erquhart force-pushed the add-auth-verbose-logs branch from ac8a03a to 2a6404d Compare January 27, 2025 16:59
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