-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generalise the types of `signJWT`, `verifyJWT`, and related functions to accept custom JWS header types. Add new type synonym `SignedJWTWithHeader h` (keeping `SignedJWT` *as is*). This change could break some applications by introducing type ambiguity. The solution is to add a type annotation or apply a function like: ```haskell fixType = id :: SignedJWT -> SignedJWT ``` I applied this technique in the test suite to address such ambiguity. Fixes: #122
- Loading branch information
1 parent
e81b0e9
commit f993243
Showing
4 changed files
with
51 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters