tekul / jose-jwt

Haskell implementation of JOSE/JWT standards
BSD 3-Clause "New" or "Revised" License
37 stars 22 forks source link

Add ParseError for invalid JWT structures #16

Open tekul opened 7 years ago

tekul commented 7 years ago

Since the JWT is now parsed in advance, before decoding, none of the existing error codes really make sense for this stage (or can't be applied, since attoparsec returns an Either String a) result.