Skip to content

v5.2.1

Compare
Choose a tag to compare
@vadimavdeev vadimavdeev released this 20 Dec 11:44
· 125 commits to master since this release

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