nativescript-oauth2
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -46,13 +46,6 @@ "use strict"; | ||
}; | ||
TnsOAuthClient.prototype.logout = function (successPage) { | ||
TnsOAuthClient.prototype.logout = function () { | ||
this.removeCookies(); | ||
this.removeToken(); | ||
this.callRevokeEndpoint(); | ||
if (successPage) { | ||
var navEntry = { | ||
moduleName: successPage, | ||
clearHistory: true | ||
}; | ||
frameModule.topmost().navigate(navEntry); | ||
} | ||
}; | ||
@@ -59,0 +52,0 @@ TnsOAuthClient.prototype.resumeWithUrl = function (url) { |
{ | ||
"name": "nativescript-oauth2", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "OAuth 2 generic authorization plugin for NativeScript that doesn't install third party native libraries", | ||
@@ -35,4 +35,7 @@ "main": "oauth", | ||
"demo.reset": "cd ../demo && npx rimraf -- hooks node_modules platforms package-lock.json", | ||
"demo-angular.reset": "cd ../demo-angular && npx rimraf -- hooks node_modules platforms package-lock.json", | ||
"demo-vue.reset": "cd ../demo-vue && npx rimraf -- hooks node_modules platforms package-lock.json", | ||
"demo-custom-provider.reset": "cd ../demo-custom-provider && npx rimraf -- hooks node_modules platforms package-lock.json", | ||
"plugin.prepare": "npm run build && cd ../demo && tns plugin remove nativescript-oauth && tns plugin add ../src", | ||
"clean": "npm run demo.reset && npx rimraf -- node_modules package-lock.json && npm i", | ||
"clean": "npm run demo.reset && npm run demo-angular.reset && npm run demo-vue.reset && npm run demo-custom-provider.reset && npx rimraf -- node_modules package-lock.json && npm i", | ||
"ci.tslint": "npm i && tslint '**/*.ts' --config '../tslint.json' --exclude '**/node_modules/**'" | ||
@@ -39,0 +42,0 @@ }, |
102039
1125