Open spencerbart opened 1 year ago
I'm not sure why this error happens but that would be an invalid JWT either way. We should have a better error though but it looks like it comes from serde somehow
https://www.rfc-editor.org/rfc/rfc7519#section-4.1.3
@Keats you are correct. It would be an invalid JWT. I didn’t realize that at first.
Our Ruby On Rails monolith issues these JWTs with a Devise plugin. We’re building a Rust microservice and I couldn’t get authentication to work. I realize now that it’s an issue with our Rails service. I just couldn’t figure out the issue because Rails and jwt.io would be able to validate it and Rust couldn’t.
Json deserializing breaks when "aud" is null like in this case.
Here's the error message
There is no other
aud
field.