Skip to content

Commit

Permalink
Upgrading auth0.js and using the new method for pwdlessLogin
Browse files Browse the repository at this point in the history
  • Loading branch information
luisrudge committed Aug 14, 2017
1 parent 1366252 commit 146609a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
"zuul-ngrok": "4.0.0"
},
"dependencies": {
"auth0-js": "~8.7.0",
"auth0-js": "^8.9.1",
"blueimp-md5": "2.3.1",
"fbjs": "^0.3.1",
"idtoken-verifier": "^1.0.1",
Expand Down
2 changes: 1 addition & 1 deletion src/core/web_api/p2_api.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class Auth0APIClient {
}

passwordlessVerify(options, authParams, cb) {
this.client.passwordlessVerify(options, err => cb(normalizeError(err)));
this.client.passwordlessLogin(options, err => cb(normalizeError(err)));
}

parseHash(hash = '', cb) {
Expand Down
5 changes: 2 additions & 3 deletions support/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@
usernameStyle: 'email',
defaultDatabaseConnection: 'acme',
prefill: {
email: 'johnfoo@gmail.com',
phoneNumber: '48991721214'
email: 'johnfoo@gmail.com'
},
passwordlessMethod: 'link'
passwordlessMethod: 'code'
};

const lock = new Auth0LockPasswordless(cid, domain, options);
Expand Down
14 changes: 7 additions & 7 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -367,12 +367,12 @@ atob@~1.1.0:
version "1.1.3"
resolved "https://registry.yarnpkg.com/atob/-/atob-1.1.3.tgz#95f13629b12c3a51a5d215abdce2aa9f32f80773"

auth0-js@~8.7.0:
version "8.7.0"
resolved "https://registry.yarnpkg.com/auth0-js/-/auth0-js-8.7.0.tgz#679bf18c574a5404e46f05daccadaba4c6f774eb"
auth0-js@^8.9.1:
version "8.9.1"
resolved "https://registry.yarnpkg.com/auth0-js/-/auth0-js-8.9.1.tgz#4e66508b9276faf60a825dd8099e825323f6cb92"
dependencies:
base64-js "^1.2.0"
idtoken-verifier "^1.0.2"
idtoken-verifier "^1.1.0"
qs "^6.4.0"
superagent "^3.3.1"
url-join "^1.1.0"
Expand Down Expand Up @@ -3987,9 +3987,9 @@ idtoken-verifier@^1.0.1:
superagent "^3.3.1"
url-join "^1.1.0"

idtoken-verifier@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/idtoken-verifier/-/idtoken-verifier-1.0.2.tgz#7457d8b3d13e59ca3ab085ed43d2b43e48536f1d"
idtoken-verifier@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/idtoken-verifier/-/idtoken-verifier-1.1.0.tgz#1add30125aa3e5e5859d152b356a908a8e2eb5a0"
dependencies:
base64-js "^1.2.0"
crypto-js "^3.1.9-1"
Expand Down

0 comments on commit 146609a

Please sign in to comment.