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.
@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?
Please fill out the following details:
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.