Open paryank opened 5 years ago
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:
constructor()
src/CognitoAccessToken.js
jwtToken
null
AccessToken
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
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:
constructor()
insrc/CognitoAccessToken.js
to setjwtToken
property tonull
instead of empty string whenAccessToken
is not available.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.