Skip to content

Commit

Permalink
Fix regression from last release
Browse files Browse the repository at this point in the history
  • Loading branch information
Benny Powers committed Sep 27, 2017
1 parent f990668 commit 54bdae3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions aws-cognito.html
Original file line number Diff line number Diff line change
Expand Up @@ -425,8 +425,9 @@
* @param {Boolean} expired Whether or not the credentials are expired.
*/
_computeSession: function(user, expired) {
if (!this.session && !this.session.isValid() && !expired &&
user && user.username) {
if (!(this.session && this.session.isValid()) &&
user && user.username &&
!expired) {
this._getSession(user)
.then((session) => this._setSession(session))
.catch((error) => {
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "polymeraws",
"version": "3.0.13",
"version": "3.0.14",
"authors": [
"Joachim den Hertog",
"Benny Powers <[email protected]>",
Expand Down

0 comments on commit 54bdae3

Please sign in to comment.