Description of changes: Ability to include the raw JWT in thrown errors. Also, instead of a generic AssertionError more concrete errors are now thrown (e.g. CognitoJwtInvalidGroupError) to make it easier to recognize the concrete error at hand.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Issue #, if available: #24
Description of changes: Ability to include the raw JWT in thrown errors. Also, instead of a generic
AssertionError
more concrete errors are now thrown (e.g.CognitoJwtInvalidGroupError
) to make it easier to recognize the concrete error at hand.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.