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

Conversation

@paryankk
Copy link

@paryankk paryankk 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.

2 participants