Skip to content
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

Multiple Callbacks Issued on Salesforce SDK's AuthHelper.loginIfRequired() in iOS App #3678

Open
bhagwat8024 opened this issue Feb 2, 2024 · 1 comment

Comments

@bhagwat8024
Copy link

Please fill out the following details:

  1. Version of Mobile SDK Used: 11.0.0
  2. Issue found in Native App or Hybrid App: Native IOS
    3.Description:
    "I have encountered an issue with the Salesforce SDK in my iOS application, specifically related to the AuthHelper.loginIfRequired function. When logging in with credentials, the callback is appropriately triggered only once. However, if the user is already logged in, the callback is issued twice.

4.Steps to Reproduce:

  • Initialize Salesforce SDK in an iOS app.
  • Use AuthHelper.loginIfRequired function for authentication.
  • Observe the callback behavior when the user is already logged in.

5.Expected Behavior:
The callback should be issued only once, regardless of whether the user is logging in with credentials or is already logged in.

6.Actual Behavior:
When the user is already logged in, the callback from AuthHelper.loginIfRequired is issued twice, causing unexpected behavior in the application.

@bbirman
Copy link
Member

bbirman commented Mar 12, 2024

@bhagwat8024 apologies for the delayed response. I'm not able to reproduce this issue so far, do you have any other details? Where in the app life cycle is AuthHelper.loginIfRequired called from?

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

No branches or pull requests

2 participants