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

nativescript-oauth2

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nativescript-oauth2 - npm Package Compare versions

Comparing version 1.4.2 to 1.4.3

6

oauth.js

@@ -47,5 +47,5 @@ "use strict";

TnsOAuthClient.prototype.logout = function () {
this.callRevokeEndpoint();
this.removeCookies();
this.removeToken();
this.callRevokeEndpoint();
};

@@ -122,3 +122,5 @@ TnsOAuthClient.prototype.resumeWithUrl = function (url) {

var connection = tns_oauth_client_connection_1.TnsOAuthClientConnection.initWithRequestClientCompletion(this, function (data, result, error) {
_this.tokenResult = tns_oauth_utils_1.httpResponseToToken(result);
if (result) {
_this.tokenResult = tns_oauth_utils_1.httpResponseToToken(result);
}
completion(_this.tokenResult, error);

@@ -125,0 +127,0 @@ });

{
"name": "nativescript-oauth2",
"version": "1.4.2",
"version": "1.4.3",
"description": "OAuth 2 generic authorization plugin for NativeScript that doesn't install third party native libraries",

@@ -5,0 +5,0 @@ "main": "oauth",

@@ -307,10 +307,13 @@ # OAuth 2 Plugin for NativeScript

To register a custom URL scheme for Android, open your Android app resources, which are in this path: app/App_Resources/Android/src/main/AndroidManifest.xml. The AndroidManifest.xml file used to be right in the Android folder, but now it's been moved down a bit. It's still the same file though. Find the `<application>` section and add the attribute `android:launchMode="singleTask"`. Then inside the activity named `com.tns.NativeScriptActivity`, add a new `<intent-filter>` section with your scheme AND your path. Here is an example of the entire `<application>`
section:
To register a custom URL scheme for Android, open your Android app resources, which are in this path: app/App_Resources/Android/src/main/AndroidManifest.xml.
The AndroidManifest.xml file used to be right in the Android folder, but now it's been moved down a bit. It's still the same file though.
Find the `<activity>` section named `com.tns.NativeScriptActivity` and add the attribute `android:launchMode="singleTask"` (or `singleTop`).
Then inside the activity add a new `<intent-filter>` section with your custom url scheme(s).
Here is an example of the entire `<activity>` section:
```xml
<application android:name="com.tns.NativeScriptApplication" android:allowBackup="true" android:icon="@drawable/icon" android:label="@string/app_name" android:theme="@style/AppTheme" android:launchMode="singleTask">
<activity android:name="com.tns.NativeScriptActivity" android:launchMode="singleTask" android:label="@string/title_activity_kimera" android:configChanges="keyboardHidden|orientation|screenSize" android:theme="@style/LaunchScreenTheme">
<activity android:name="com.tns.NativeScriptActivity" android:label="@string/title_activity_kimera" android:configChanges="keyboardHidden|orientation|screenSize" android:theme="@style/LaunchScreenTheme">
<meta-data android:name="SET_THEME_ON_LAUNCH" android:resource="@style/AppTheme" />

@@ -327,10 +330,8 @@

<category android:name="android.intent.category.BROWSABLE" />
<!-- Custom Path data -->
<data android:path="/auth" android:scheme="com.googleusercontent.apps.932931520457-buv2dnhgo7jjjjv5fckqltn367psbrlb"/>
<data android:path="/auth" android:scheme="msalf376fa87-64a9-89a1-8b56-e0d48fc08107"/>
<!-- Custom URL Schemes -->
<data android:scheme="com.googleusercontent.apps.932931520457-buv2dnhgo7jjjjv5fckqltn367psbrlb"/>
<data android:scheme="msalf376fa87-64a9-89a1-8b56-e0d48fc08107"/>
</intent-filter>
</activity>
<activity android:name="com.tns.ErrorReportActivity"/>
</application>
```

@@ -337,0 +338,0 @@

@@ -62,3 +62,3 @@ "use strict";

}
});
}, function (error) { return _this.completion(null, null, error); });
};

@@ -74,3 +74,3 @@ TnsOAuthClientConnection.prototype.startTokenRefresh = function () {

case "oid-full":
var options1 = this.client.provider.options;
var options1 = (this.client.provider.options);
body = querystring.stringify({

@@ -83,3 +83,3 @@ grant_type: "refresh_token",

case "oid-none":
var options2 = this.client.provider.options;
var options2 = (this.client.provider.options);
body = querystring.stringify({

@@ -106,3 +106,3 @@ grant_type: "refresh_token",

}
});
}, function (error) { return _this.completion(null, null, error); });
};

@@ -109,0 +109,0 @@ TnsOAuthClientConnection.prototype.getTokenFromCode = function (client, code, completion) {

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