Skip to content

fix(authentication): Bad accessToken when signing in via Facebook under iOS #843

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Mar 16, 2025

Conversation

ebarooni
Copy link
Member

@ebarooni ebarooni commented Mar 13, 2025

Pull request checklist

Please check if your PR fulfills the following requirements:

  • The changes have been tested successfully.
  • A changeset has been created (npm run changeset).
  • I have read and followed the pull request guidelines.

Closes: #834

…nder iOS

Replace classic facebook login with limited login.
…nder iOS

Add definitions for app transparency methods.
…nder iOS

Implement app transparency methods on ios.
Copy link

pkg-pr-new bot commented Mar 13, 2025

Open in Stackblitz

@capacitor-firebase/analytics

npm i https://pkg.pr.new/capawesome-team/capacitor-firebase/@capacitor-firebase/analytics@843

@capacitor-firebase/app

npm i https://pkg.pr.new/capawesome-team/capacitor-firebase/@capacitor-firebase/app@843

@capacitor-firebase/app-check

npm i https://pkg.pr.new/capawesome-team/capacitor-firebase/@capacitor-firebase/app-check@843

@capacitor-firebase/authentication

npm i https://pkg.pr.new/capawesome-team/capacitor-firebase/@capacitor-firebase/authentication@843

@capacitor-firebase/crashlytics

npm i https://pkg.pr.new/capawesome-team/capacitor-firebase/@capacitor-firebase/crashlytics@843

@capacitor-firebase/firestore

npm i https://pkg.pr.new/capawesome-team/capacitor-firebase/@capacitor-firebase/firestore@843

@capacitor-firebase/functions

npm i https://pkg.pr.new/capawesome-team/capacitor-firebase/@capacitor-firebase/functions@843

@capacitor-firebase/messaging

npm i https://pkg.pr.new/capawesome-team/capacitor-firebase/@capacitor-firebase/messaging@843

@capacitor-firebase/performance

npm i https://pkg.pr.new/capawesome-team/capacitor-firebase/@capacitor-firebase/performance@843

@capacitor-firebase/remote-config

npm i https://pkg.pr.new/capawesome-team/capacitor-firebase/@capacitor-firebase/remote-config@843

@capacitor-firebase/storage

npm i https://pkg.pr.new/capawesome-team/capacitor-firebase/@capacitor-firebase/storage@843

commit: 0ee4861

…nder iOS

Add logic to handle both classic and limited login.
…nder iOS

Add docs to use classic facebook login.
@ebarooni ebarooni requested a review from robingenz March 13, 2025 20:51
@ebarooni ebarooni self-assigned this Mar 13, 2025
@ebarooni ebarooni marked this pull request as ready for review March 13, 2025 20:51
robingenz and others added 2 commits March 15, 2025 14:48
@ebarooni ebarooni requested a review from robingenz March 15, 2025 15:48
Copy link
Member

@robingenz robingenz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Last changes 🤞

@robingenz robingenz requested a review from Copilot March 15, 2025 22:58
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses an issue with a bad accessToken when signing in via Facebook on iOS by updating the signInWithFacebook API and adding support for Facebook Limited Login. It also introduces two new methods (checkAppTrackingTransparencyPermission and requestAppTrackingTransparencyPermission) to handle app tracking transparency on iOS, along with necessary documentation, type definitions, and platform-specific implementations.

Reviewed Changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated no comments.

Show a summary per file
File Description
packages/authentication/README.md Updated signInWithFacebook signature and added documentation for the new iOS-specific APIs.
.changeset/happy-oranges-rush.md Added a changeset entry for the iOS feature supporting Facebook Limited Login.
packages/authentication/docs/setup-facebook.md Included instructions for setting NSUserTrackingUsageDescription in Info.plist.
packages/authentication/src/definitions.ts Updated method signatures and type definitions for tracking transparency APIs.
packages/authentication/android/src/main/java/io/capawesome/capacitorjs/plugins/firebase/authentication/FirebaseAuthenticationPlugin.java Added stub implementations for tracking transparency methods that reject calls on Android.
packages/authentication/src/web.ts Added stub implementations for tracking transparency methods that throw a not available error on web.

…nder iOS

Use restricted instead of prompt-with-rationale.
@ebarooni ebarooni requested a review from robingenz March 16, 2025 08:21
@robingenz robingenz merged commit 22c4c13 into main Mar 16, 2025
4 checks passed
@robingenz robingenz deleted the bug/issue-834 branch March 16, 2025 09:31
@github-actions github-actions bot mentioned this pull request Mar 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug(authentication): Bad access token when signing in via Facebook under iOS
2 participants