New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@auth0/cordova

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@auth0/cordova - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

auth0-cordova-0.3.0.tgz

4

package.json
{
"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' };
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc