amazon-archives / amazon-cognito-auth-js

The Amazon Cognito Auth SDK for JavaScript simplifies adding sign-up, sign-in with user profile functionality to web apps.
Apache License 2.0
423 stars 232 forks source link

Set jwtToken to null instead of blank string #173

Open paryank opened 5 years ago

paryank commented 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:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.