v5.2.1
December 20, 2018
Fixed
Bug in JWT parsing from string where it would change the string representation of the token. This caused compatibility issues with other Virgil SDKs where serializing an object as JSON does not produce the same result as JSON.stringify
in JavaScript. The Virgil Cloud would reject such a token as invalid.
The following now returns true
regardless of how the tokenString
was serialized.
Jwt.fromString(tokenString).toString() === tokenString