@auth0/cordova
Advanced tools
Comparing version 0.2.0 to 0.3.0
{ | ||
"name": "@auth0/cordova", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "Auth0 integration for Cordova applications", | ||
@@ -36,3 +36,3 @@ "main": "src/index.js", | ||
"dependencies": { | ||
"auth0-js": "^8.5.0", | ||
"auth0-js": "^9.0.0", | ||
"url-parse": "^1.1.8" | ||
@@ -39,0 +39,0 @@ }, |
@@ -76,3 +76,3 @@ # Auth0 Cordova | ||
client.authorize(options, function (err, result) { | ||
auth0.authorize(options, function (err, result) { | ||
if (err) { | ||
@@ -79,0 +79,0 @@ // failure |
@@ -33,4 +33,8 @@ var parse = require('url-parse'); | ||
this.redirectUri = options.packageIdentifier + '://' + options.domain + '/cordova/' + options.packageIdentifier + '/callback'; | ||
this.client = new auth0.Authentication({ | ||
this.auth0 = new auth0.WebAuth({ | ||
clientID: this.clientId, | ||
domain: this.domain | ||
}); | ||
this.client = new auth0.Authentication(this.auth0, { | ||
clientID: this.clientId, | ||
domain: this.domain, | ||
@@ -149,2 +153,4 @@ _telemetryInfo: telemetry | ||
var verifier = keys.codeVerifier; | ||
agent.close(); | ||
client.oauthToken({ | ||
@@ -156,3 +162,2 @@ code_verifier: verifier, | ||
}, function (exchangeError, exchangeResult) { | ||
agent.close(); | ||
if (exchangeError) { | ||
@@ -182,3 +187,10 @@ return callback(exchangeError); | ||
CordovaAuth.onRedirectUri = function (url) { | ||
session.onRedirectUri(url); | ||
// If we are running in UIWebView we need to wait | ||
if (window.webkit && window.webkit.messageHandlers) { | ||
return session.onRedirectUri(url); | ||
} | ||
return setTimeout(function () { | ||
session.onRedirectUri(url); | ||
}, 4); | ||
}; | ||
@@ -185,0 +197,0 @@ |
@@ -1,1 +0,1 @@ | ||
module.exports = { raw: '0.1.0' }; | ||
module.exports = { raw: '0.3.0' }; |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
2879347
1238
56
1
+ Addedasap@2.0.6(transitive)
+ Addedauth0-js@9.28.0(transitive)
+ Addedcrypto-js@4.2.0(transitive)
+ Addeddebug@4.4.0(transitive)
+ Addeddezalgo@1.0.4(transitive)
+ Addedfast-safe-stringify@2.1.1(transitive)
+ Addedform-data@4.0.2(transitive)
+ Addedformidable@2.1.2(transitive)
+ Addedhexoid@1.0.0(transitive)
+ Addedidtoken-verifier@2.2.4(transitive)
+ Addedjs-cookie@2.2.1(transitive)
+ Addedmime@2.6.0(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedreadable-stream@3.6.2(transitive)
+ Addedsemver@7.7.1(transitive)
+ Addedstring_decoder@1.3.0(transitive)
+ Addedsuperagent@7.1.6(transitive)
+ Addedwrappy@1.0.2(transitive)
- Removedauth0-js@8.12.3(transitive)
- Removedcore-util-is@1.0.3(transitive)
- Removedcrypto-js@3.3.0(transitive)
- Removeddebug@3.2.7(transitive)
- Removedextend@3.0.2(transitive)
- Removedform-data@2.5.3(transitive)
- Removedformidable@1.2.6(transitive)
- Removedidtoken-verifier@1.5.1(transitive)
- Removedisarray@1.0.0(transitive)
- Removedmime@1.6.0(transitive)
- Removedprocess-nextick-args@2.0.1(transitive)
- Removedreadable-stream@2.3.8(transitive)
- Removedsafe-buffer@5.1.2(transitive)
- Removedstring_decoder@1.1.1(transitive)
- Removedsuperagent@3.8.3(transitive)
- Removedurl-join@1.1.0(transitive)
Updatedauth0-js@^9.0.0