amazon-cognito-auth-js
amazon-cognito-auth-js copied to clipboard
Set jwtToken to null instead of blank string
getUsername() and getExpiration() throws error, when AccessToken is blank. In constructor, jwtToken should be set to null to avoid this error.
Issue #, if available:
Description of changes:
- Updated
constructor()insrc/CognitoAccessToken.jsto setjwtTokenproperty tonullinstead of empty string whenAccessTokenis not available.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.