Repository navigation
Security fix
On Android, decode() accepted a token with the header alg: none and an empty signature. A caller without the secret could forge claims. decode() now rejects every token that is not signed.
- Affected: Android, versions up to 3.1.0. iOS was not affected.
- Not changed:
skipValidation: truestill decodes a token without a signature check, as documented.
Update to 3.1.1 if your app verifies tokens with decode() on Android.
Thanks to Vishal Suwalka (@vsuwalka01) for the report and the suggested fix.