@capgo/capacitor-social-login 7.5.1 → 7.5.2

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.
Files changed (2) hide show
  1. package/README.md +53 -0
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -496,3 +496,56 @@ Refresh the access token
496
496
 
497
497
  This plugin implementation of google is based on [CapacitorGoogleAuth](https://github.com/CodetrixStudio/CapacitorGoogleAuth) with a lot of rework, the current maintainer is unreachable, we are thankful for his work and are now going forward on our own!
498
498
  Thanks to [reslear](https://github.com/reslear) for helping to tranfer users to this plugin from the old one and all the work.
499
+
500
+ ## Privacy Manifest for App Developers
501
+
502
+ If you use Google, Facebook, or Apple login, you must declare the data collected by their SDKs in your app's `PrivacyInfo.xcprivacy` file (not in the plugin).
503
+
504
+ Add this file in your app at: `ios/App/PrivacyInfo.xcprivacy`
505
+
506
+ ### Google Sign-In Example
507
+ ```json
508
+ {
509
+ "NSPrivacyCollectedDataTypes": [
510
+ { "NSPrivacyCollectedDataType": "EmailAddress", "NSPrivacyCollectedDataTypeLinked": true, "NSPrivacyCollectedDataTypeTracking": false },
511
+ { "NSPrivacyCollectedDataType": "Name", "NSPrivacyCollectedDataTypeLinked": true, "NSPrivacyCollectedDataTypeTracking": false },
512
+ { "NSPrivacyCollectedDataType": "UserID", "NSPrivacyCollectedDataTypeLinked": true, "NSPrivacyCollectedDataTypeTracking": false }
513
+ ]
514
+ }
515
+ ```
516
+
517
+ ### Facebook Login Example
518
+ ```json
519
+ {
520
+ "NSPrivacyCollectedDataTypes": [
521
+ { "NSPrivacyCollectedDataType": "EmailAddress", "NSPrivacyCollectedDataTypeLinked": true, "NSPrivacyCollectedDataTypeTracking": false },
522
+ { "NSPrivacyCollectedDataType": "Name", "NSPrivacyCollectedDataTypeLinked": true, "NSPrivacyCollectedDataTypeTracking": false },
523
+ { "NSPrivacyCollectedDataType": "UserID", "NSPrivacyCollectedDataTypeLinked": true, "NSPrivacyCollectedDataTypeTracking": false },
524
+ { "NSPrivacyCollectedDataType": "FriendsList", "NSPrivacyCollectedDataTypeLinked": true, "NSPrivacyCollectedDataTypeTracking": false }
525
+ ]
526
+ }
527
+ ```
528
+
529
+ ### Apple Sign-In Example
530
+ ```json
531
+ {
532
+ "NSPrivacyCollectedDataTypes": [
533
+ { "NSPrivacyCollectedDataType": "EmailAddress", "NSPrivacyCollectedDataTypeLinked": true, "NSPrivacyCollectedDataTypeTracking": false },
534
+ { "NSPrivacyCollectedDataType": "Name", "NSPrivacyCollectedDataTypeLinked": true, "NSPrivacyCollectedDataTypeTracking": false }
535
+ ]
536
+ }
537
+ ```
538
+
539
+ - Adjust the data types to match your app's usage and the SDK documentation.
540
+ - See [Apple docs](https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/) for all allowed keys and values.
541
+
542
+ ## Troubleshooting
543
+
544
+ ### Invalid Privacy Manifest (ITMS-91056)
545
+ If you get this error on App Store Connect:
546
+
547
+ > ITMS-91056: Invalid privacy manifest - The PrivacyInfo.xcprivacy file from the following path is invalid: ...
548
+
549
+ **How to fix:**
550
+ - Make sure your app's `PrivacyInfo.xcprivacy` is valid JSON, with only Apple-documented keys/values.
551
+ - Do not include a privacy manifest in the plugin, only in your app.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/capacitor-social-login",
3
- "version": "7.5.1",
3
+ "version": "7.5.2",
4
4
  "description": "All social logins in one plugin",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",