Skip to content

Commit

Permalink
fix: emit err instead of authResult
Browse files Browse the repository at this point in the history
  • Loading branch information
chenkie committed Jan 24, 2017
1 parent 0ea05b4 commit 372436c
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion angular-lock.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@

webAuth.parseHash({ hash: hash }, function(err, authResult) {
if (err) {
Lock.emit('authorization_error', authResult);
Lock.emit('authorization_error', err);
}
if (authResult && authResult.idToken) {
Lock.emit('authenticated', authResult);
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": "angular-lock",
"version": "2.0.0-beta.0",
"version": "2.0.0-beta.1",
"main": "angular-lock.js",
"dependencies": {
"angular": "*",
Expand Down
2 changes: 1 addition & 1 deletion dist/angular-lock.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@

webAuth.parseHash({ hash: hash }, function(err, authResult) {
if (err) {
Lock.emit('authorization_error', authResult);
Lock.emit('authorization_error', err);
}
if (authResult && authResult.idToken) {
Lock.emit('authenticated', authResult);
Expand Down
2 changes: 1 addition & 1 deletion dist/angular-lock.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-lock",
"version": "2.0.0-beta.0",
"version": "2.0.0-beta.1",
"description": "Angular wrapper for Lock",
"main": "angular-lock.js",
"repository": {
Expand Down

0 comments on commit 372436c

Please sign in to comment.