- Adding a
try
version ofdecode
,verify
andsign
, that simply returnsnull
instead of throwing errors
- Adding a
JWT.decode
method to simply decode a token without checking its signature - The
JWT.verify
method do not remove extra token infos (iss
,aud
, ...) anymore
- Fix Flutter compatibility issue:
downgrade
dependency collection to1.16.0
- Formating for 'static analysis'
- Fix : jonasroussel#19
- BREAKING CHANGE:
JWT.audience
is now an instance of theAudience
class, to handle multiple audience entries and can be used like list. You can always use a single entry by callingAudience.one('...')
factory and the.first
getter - Upgrading
pointycastle
dependency to3.3.4
- Some badges on
README.md
(Thanks to https://github.com/bruno-garcia/badges.bar)
- Fix the
pointycastle
dependency,v3.1.3
is incompatible with flutter web (dart2js) (jonasroussel#14)
- Adding
header
in JWT class (you can now set your custom header)
- Fixing EdDSA incompatibility's with flutter web (jonasroussel#11)
- Dependencies:
ed25519_edwards
have been removed,convert
&collection
have been added
- Fixing
_pkcs8ECPublicKey
to work with pointycastle 3.0.1
- When an undefined error occur
JWTUndefinedError
is thrown containing the original error inerror
property (jonasroussel#9) - BREAKING CHANGE:
jwt.verify
no longer supportthrowUndefinedErrors
parameter
- Fixing
JWT.sign
to includeiat
& other attributes when payload is an empty Map
- Stable release for null safety
- New EdDSA Algorithm (EdDSA)
- EdDSAPrivateKey and EdDSAPublicKey, two new keys for EdDSA algorithm
ed25519_edwards
package has been added
- Null safety migration of this package
- Adding
analysis_options.yaml
to work with pedantic during development
- Formating for 'static analysis'
- New ECDSA Algorithm (EC256, EC384, EC512)
- ECPrivateKey and ECPublicKey, two new keys for ECDSA algorithm
- PrivateKey is renamed in RSAPrivateKey
- PublicKey is renamed in RSAPublicKey
- Optimization of private & public keys parsing
rsa_pkcs
&cryptography
have been removed
- Debuging
_TypeError issue on sign method
(#4) - Implementing
toString
in theJWTError
class
- Formating for 'static analysis'
- Implementing
throwUndefinedErrors
option in theJWT.verify
method
- Formating for 'static analysis'
- Adding checks in
JWT.verify
function foriss, sub, aud, iat, jti
- Formating for 'static analysis'
- Payload is now required
- Payload is now dynamic and not restricted to an object
- Dependencies updated
- New algorithms
- Formating for 'static analysis'
- Docs & examples
- More details on exceptions
- New examples
- New RSA Algorithm (RS256)
- Keys a now using an abstract class 'Key' instead of a string
- SecretKey: for HMAC (HS256)
- PrivateKey & PublicKey: for RSA (RS256)
- Formatting
- Better documentations
- First version with every based features