cordova-plugin-sso
Advanced tools
Comparing version 0.2.3 to 0.2.4
{ | ||
"name": "cordova-plugin-sso", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "cordova-plugin-sso", | ||
"cordova" : { | ||
"cordova": { | ||
"id": "cordova-plugin-sso", | ||
@@ -36,2 +36,2 @@ "platforms": [ | ||
] | ||
} | ||
} |
# cordova-plugin-sso | ||
## What ? | ||
@@ -18,3 +17,3 @@ | ||
and Install | ||
and Install | ||
@@ -37,6 +36,6 @@ ``` | ||
<!-- Google signin iOS--> | ||
<variable name="GOOGLE_CLIENT_ID" value="426376846835-mlvbbgm7njiaqnt9d9k1i3v1tbb3sieq.apps.googleusercontent.com" /> | ||
<variable name="GOOGLE_REVERSED_CLIENT_ID" value="com.googleusercontent.apps.426376846835-mlvbbgm7njiaqnt9d9k1i3v1tbb3sieq" /> | ||
<variable name="GOOGLE_CLIENT_ID" value="[clinet_id]" /> | ||
<variable name="GOOGLE_REVERSED_CLIENT_ID" value="[reverse_clinet_id]" /> | ||
<!-- Google signin Android--> | ||
<variable name="GOOGLE_WEB_OAUTH_CLIENT_ID" value="426376846835-09m1vk5faq5m480ov06lbsedpbuldjpj.apps.googleusercontent.com"/> | ||
<variable name="GOOGLE_WEB_OAUTH_CLIENT_ID" value="[outh clinet]"/> | ||
</plugin> | ||
@@ -48,3 +47,3 @@ | ||
## Service Settings | ||
## Service Settings | ||
@@ -63,3 +62,2 @@ ### LINE | ||
#### for iOS | ||
@@ -75,3 +73,2 @@ | ||
#### for Android | ||
@@ -89,8 +86,4 @@ | ||
## Usage | ||
### Available Service | ||
@@ -106,15 +99,17 @@ | ||
if (window.sso) { | ||
sso.twitter.login(function(result) { | ||
// success | ||
var data = { | ||
name: result.name, | ||
id: result.userId, | ||
token: result.token, | ||
image: result.image | ||
}; | ||
}, function(error) { | ||
// error | ||
console.log(error); | ||
}); | ||
sso.twitter.login( | ||
function(result) { | ||
// success | ||
var data = { | ||
name: result.name, | ||
id: result.userId, | ||
token: result.token, | ||
image: result.image | ||
}; | ||
}, | ||
function(error) { | ||
// error | ||
console.log(error); | ||
} | ||
); | ||
} | ||
@@ -125,6 +120,5 @@ ``` | ||
Every service has below parameters | ||
- name | ||
- name | ||
- userId | ||
@@ -134,3 +128,2 @@ - token | ||
Optional parameters below | ||
@@ -143,12 +136,14 @@ | ||
```javascript | ||
if (window.sso) { | ||
sso.twitter.logout(function(message) { | ||
// success | ||
console.log(message) // -> display logout | ||
}, function(error) { | ||
// error | ||
console.log(error); | ||
}); | ||
sso.twitter.logout( | ||
function(message) { | ||
// success | ||
console.log(message); // -> display logout | ||
}, | ||
function(error) { | ||
// error | ||
console.log(error); | ||
} | ||
); | ||
} | ||
@@ -164,6 +159,7 @@ ``` | ||
- Using cocoapods | ||
- Updating all iOS SDK (Twitter Facebook LINE) | ||
- TwitterKit: 3.4.0 | ||
- Updating all iOS SDK (Twitter Facebook LINE) | ||
- TwitterKit: 3.4.0 | ||
- FBSDKLoginKit: 4.38 | ||
- LineSDKSwift: 5.0 | ||
- LineSDKSwift: 5.0 | ||
@@ -174,7 +170,7 @@ - Using NotificationCenter and Removing app delegat | ||
##### Android | ||
- remove Google signin | ||
#### 0.2.2 | ||
#### 0.2.2 | ||
Google sign in (android and ios) | ||
@@ -184,2 +180,6 @@ | ||
remove dependency of cordova plugin cocoapods | ||
remove dependency of cordova plugin cocoapods | ||
### 0.2.4 | ||
bugfix facebook login |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
173
129111