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

"The JWT could not be de-serialized." #48

Closed
salami opened this issue Sep 14, 2022 · 4 comments
Closed

"The JWT could not be de-serialized." #48

salami opened this issue Sep 14, 2022 · 4 comments

Comments

@salami
Copy link

salami commented Sep 14, 2022

This is for a kotlin-based Android project.

I'm calling Mapper.deserialize(bytes, JSONWebKey::class.java) and it works completely fine on my dev build from android studio, but in a prod release it throws an InvalidJWTException error with the message "The JWT could not be de-serialized."

Any idea what the issue is? Do I need to add some proguard rules?

@mooreds
Copy link
Contributor

mooreds commented Sep 14, 2022

What versions of java are you targeting in each environment?

@salami
Copy link
Author

salami commented Sep 14, 2022

Java 1.8 for both. I'm going to try a build now with the minify/obfuscate stuff taken out.

@robotdan
Copy link
Member

Possibly related:

No idea if this library will work in Dalvik or Android runtime (ART).

@salami
Copy link
Author

salami commented Sep 14, 2022

Ok it's working for me without the minify/obfuscate stuff.

I don't know much about proguard rules but I'll try to investigate when I get some time. My app is only being pushed for internal testing right now so low urgency.

Thanks for the help.

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

No branches or pull requests

3 participants