Skip to content

fix(rpc): accept jwt's starting with 0x#1589

Merged
onbjerg merged 2 commits intoparadigmxyz:mainfrom
palango:hex-jwt
Feb 28, 2023
Merged

fix(rpc): accept jwt's starting with 0x#1589
onbjerg merged 2 commits intoparadigmxyz:mainfrom
palango:hex-jwt

Conversation

@palango
Copy link
Contributor

@palango palango commented Feb 28, 2023

Resolves #1586

@palango palango requested a review from gakonst as a code owner February 28, 2023 17:20
@palango palango force-pushed the hex-jwt branch 2 times, most recently from e82863a to 8e7bfce Compare February 28, 2023 17:22
@palango palango changed the title fix(rpx): accept jwt's starting with 0x fix(rpc): accept jwt's starting with 0x Feb 28, 2023
Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

please mention this behavior to the docs

lgtm otherwise.

@mattsse mattsse added the A-rpc Related to the RPC implementation label Feb 28, 2023
@palango
Copy link
Contributor Author

palango commented Feb 28, 2023

please mention this behavior to the docs

Just the inline comments or is there some other place to mention this?

@onbjerg onbjerg added the C-bug An unexpected or incorrect behavior label Feb 28, 2023
@mattsse
Copy link
Collaborator

mattsse commented Feb 28, 2023

simply add a note to the function doc that this strips leading 0x

@onbjerg onbjerg requested a review from mattsse February 28, 2023 19:49
@onbjerg onbjerg merged commit 3790a14 into paradigmxyz:main Feb 28, 2023
@palango palango deleted the hex-jwt branch February 28, 2023 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-rpc Related to the RPC implementation C-bug An unexpected or incorrect behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support 0x prefix in JWT secret

3 participants