Skip to content

[$250] iOS - Login - Unable to sign in using Apple sign in #64622

Closed

Description

@mitarachim

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: v9.1.69-2
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught during regression testing, add the test name, ID and link from TestRail: #51257
Email or phone of affected tester (no customers): applausetester+dt109@applause.expensifail.com
Issue reported by: Applause Internal Team
Device used: iPhone 8
App Component: Other

Action Performed:

  1. Navigate to staging App on iOS
  2. Try signing in with the Apple sign in

Expected Result:

Able to sign in with the apple sign in

Actual Result:

Error is shown on the login field and Unable to sign in

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6865098_1750389615561.IMG_0220.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021935962400791835068
  • Upwork Job ID: 1935962400791835068
  • Last Price Increase: 2025-06-20
Issue OwnerCurrent Issue Owner: @eh2077

Activity

  1. added
    DeployBlockerCashThis issue or pull request should block deployment
    BugSomething is broken. Auto assigns a BugZero manager.
    DeployBlockerIndicates it should block deploying the API
    on Jun 20, 2025
  2. github-actions commented on Jun 20, 2025

    @github-actions
    Contributor

    👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

    1. Identify the pull request that introduced this issue and revert it.
    2. Find someone who can quickly fix the issue.
    3. Fix the issue yourself.
  3. melvin-bot commented on Jun 20, 2025

    @melvin-bot

    Triggered auto assignment to @puneetlath (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

  4. melvin-bot commented on Jun 20, 2025

    @melvin-bot

    Triggered auto assignment to @abekkala (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

  5. melvin-bot commented on Jun 20, 2025

    @melvin-bot

    💬 A slack conversation has been started in #expensify-open-source

  6. 6 remaining items

  7. AvtMob commented on Jun 20, 2025

    @AvtMob

    Hi
    Here are some possible Causes for Apple Sign-In Failure

    Missing Capabilities
    – Sign In with Apple not enabled in Xcode project settings.
    Wrong Bundle ID or Service ID
    – Mismatch between app’s bundle ID and what’s set up on Apple Developer portal.
    Unsupported Devices
    – Apple Sign-In not supported on simulators or iOS versions below 13.
    Incorrect Library Setup
    – Misconfigured or incomplete integration of react-native-apple-authentication.
    Missing or Incorrect Info.plist Keys
    – Required keys like NSAppleIDUsageDescription not present.
    Backend Token Verification Errors
    – Identity token returned by Apple not properly verified by backend.
    Apple Developer Console Misconfiguration
    – Feature not properly enabled under App ID or missing provisioning profile update.
    User Cancelled or Silent Errors
    – No visible error, but sign-in was cancelled or failed without feedback.

    Solutions for Fixing Apple Sign-In

    1. Enable Sign-In with Apple in Xcode
      Ensure the capability is added for all targets.

    2. Verify Bundle ID & Service ID
      Confirm that the app’s bundle ID matches exactly with the one registered on the Apple Developer portal.

    3. Test on a Supported Real Device (iOS 13+)
      Use physical devices running iOS 13 or above for reliable testing.

    4. Recheck Integration of Apple Sign-In Library
      Ensure correct installation, pod setup, and usage of the React Native Apple auth library.

    5. Update Info.plist
      Add NSAppleIDUsageDescription and any required URL schemes.

    6. Check Developer Account Settings
      Confirm "Sign In with Apple" is enabled in the App Identifier and re-download provisioning profiles if updated.

    7. Backend Verification Review (if applicable)
      Ensure backend properly validates Apple identity tokens, including signature and expiration.

    8. Add Better Error Logging
      Implement clear error messages or fallbacks to detect silent or user-cancelled flows.

  8. melvin-bot commented on Jun 20, 2025

    @melvin-bot

    📣 @AvtMob! 📣
    Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
    Please follow these steps:

    1. Make sure you've read and understood the contributing guidelines.
    2. Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
    3. Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
    4. Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
      Screen Shot 2022-11-16 at 4 42 54 PM
      Format:
    Contributor details
    Your Expensify account email: <REPLACE EMAIL HERE>
    Upwork Profile Link: <REPLACE LINK HERE>
    
  9. AvtMob commented on Jun 20, 2025

    @AvtMob

    Contributor details
    Your Expensify account email: Avtar.hb13@gmail.com
    Upwork Profile Link: https://www.upwork.com/freelancers/avtar

  10. melvin-bot commented on Jun 20, 2025

    @melvin-bot

    ✅ Contributor details stored successfully. Thank you for contributing to Expensify!

  11. mountiny commented on Jun 20, 2025

    @mountiny
    Contributor

    This will require Auth fix

  12. mountiny commented on Jun 20, 2025

    @mountiny
    Contributor
  13. self-assigned this
    on Jun 20, 2025
  14. mountiny commented on Jun 20, 2025

    @mountiny
    Contributor

    PR raised

  15. removed
    DeployBlockerCashThis issue or pull request should block deployment
    Help WantedApply this label when an issue is open to proposals by contributors
    on Jun 20, 2025
  16. mountiny commented on Jun 20, 2025

    @mountiny
    Contributor

    Fixed after the deploy!

  17. puneetlath commented on Jun 20, 2025

    @puneetlath
    Contributor

    Thanks for handling!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributor

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions