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

Catch TypeError #436

Merged
merged 2 commits into from
Aug 10, 2022
Merged

Catch TypeError #436

merged 2 commits into from
Aug 10, 2022

Conversation

eevleevs
Copy link
Contributor

@eevleevs eevleevs commented Aug 9, 2022

Move definition of protectedHeader inside try block to catch TypeError('The input to be decoded is not correctly encoded.')

Move definition of protectedHeader inside try block to catch TypeError('The input to be decoded is not correctly encoded.')
@panva
Copy link
Owner

panva commented Aug 9, 2022

Please do the same in src/jwe/flattened/decrypt.ts as well.

Move definition of protectedHeader inside try block to catch TypeError('The input to be decoded is not correctly encoded.')
@panva panva added the full-ci label Aug 10, 2022
@github-actions github-actions bot removed the full-ci label Aug 10, 2022
@panva panva merged commit caaf2c3 into panva:main Aug 10, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Nov 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants