forcedotcom / SalesforceMobileSDK-iOS

iOS SDK for Salesforce
Other
538 stars 418 forks source link

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

Open bhagwat8024 opened 5 months ago

bhagwat8024 commented 5 months ago

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:

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 commented 4 months ago

@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?