@capgo/capacitor-social-login 0.1.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -189,15 +189,16 @@ public class AppleProvider implements SocialProvider {
|
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
|
|
192
|
-
this.appleAuthURLFull =
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
192
|
+
this.appleAuthURLFull =
|
|
193
|
+
AUTHURL +
|
|
194
|
+
"?client_id=" +
|
|
195
|
+
this.clientId +
|
|
196
|
+
"&redirect_uri=" +
|
|
197
|
+
this.redirectUrl +
|
|
198
|
+
"&response_type=code&scope=" +
|
|
199
|
+
scopes +
|
|
200
|
+
"&response_mode=form_post&state=" +
|
|
201
|
+
state;
|
|
201
202
|
|
|
202
203
|
if (nonce != null) {
|
|
203
204
|
this.appleAuthURLFull += "&nonce=" + nonce;
|
|
@@ -324,7 +324,7 @@ public class GoogleProvider implements SocialProvider {
|
|
|
324
324
|
|
|
325
325
|
// Extract scopes from the config
|
|
326
326
|
JSONArray scopesArray = config.optJSONArray("scopes");
|
|
327
|
-
|
|
327
|
+
|
|
328
328
|
// Remove duplicates from scopes array
|
|
329
329
|
if (scopesArray != null) {
|
|
330
330
|
Set<String> uniqueScopes = new HashSet<>();
|