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

Commit

Permalink
fix(auth0): Close popup after an unrecoverable error
Browse files Browse the repository at this point in the history
  • Loading branch information
pfurini committed Oct 18, 2016
1 parent 9a91ef2 commit 36aa441
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/authLock.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ export class AuthLock {
});
});
this.lock.on('unrecoverable_error', err => {
if (!lockOptions.auth.redirect) {
// hides the lock popup, as it doesn't do so automatically
this.lock.hide();
}
reject(err);
});
this.lock.show();
Expand Down

0 comments on commit 36aa441

Please sign in to comment.