Skip to content
This repository has been archived by the owner on Mar 12, 2020. It is now read-only.

Set jwtToken to null instead of blank string #173

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

paryank
Copy link

@paryank paryank commented Jan 18, 2019

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() in src/CognitoAccessToken.js to set jwtToken property to null instead of empty string when AccessToken is not available.

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.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant