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

fix: handle 0x prefix to jwt secret if it exists #246

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

alessandromazza98
Copy link
Contributor

Closes #245

The problem is that if the jwt secret starts with 0x - and most clients generate the jwt secret with 0x prefix - the length is 66 instead of 64 so it panics.

To solve it, I simply remove the prefix if it exists

Copy link
Contributor

@ncitron ncitron left a comment

Choose a reason for hiding this comment

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

LGTM!

@ncitron ncitron merged commit f72c7aa into a16z:master Jun 20, 2024
5 checks passed
@barnabasbusa
Copy link
Contributor

@ncitron could you please push an updated docker image with each update to master?

@alessandromazza98 alessandromazza98 deleted the fix-jwt-secret branch June 20, 2024 22:01
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.

Error: Invalid JWT secret key length
3 participants