-
-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating jwt.Attempt() to accept custom payload (#39)
* fix(jwt): Allowed jwt.attempt() to accept an optional payload With recent work on jwt.generate(), that function signature was updated to allow a user to push a custom payload into the JWT that was created. Since jwt.attempt() uses jwt.generate() internally, this fix just updates the jwt.attempt() method to allow also adding a custom payload /issues/38 * test(jwt): JWT.attempt() test for updated method signature Added a test for verifying JWT.attempt() works properly when you include a custom payload for the token generation.
- Loading branch information
1 parent
e7fe312
commit 3c4a2b4
Showing
2 changed files
with
37 additions
and
2 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