You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue found in Native App or Hybrid App: Native iOS app
OS Version: 17.0
Device: iPhone 14 pro
Steps to reproduce:
i - Call AuthHelper.loginIfRequired(callback1) at any point in the app, for example, at screen A.
ii - Logout from the app.
iii - Call AuthHelper.loginIfRequired(callback2) from a different place in the app, such as screen C
iv - After successfully logging in from screen C, observe that instead of calling callback2 directly on screen C, it first calls callback1 on screen A and then callback2 on screen C.
Note that subsequent calls to AuthHelper.loginIfRequired after login will execute all previously passed callbacks, regardless of their origin.
Actual behavior:
AuthHelper.loginIfRequired retaining previously passed closures and executing all of them when next time it gets call
Expected Behavior:
Should only execute the last call back passed to it
Error Log:
No error logs
The text was updated successfully, but these errors were encountered:
actually we have a viewController for the login page and whenever user put the credential into the login form , we are getting callback multiple times.
one more thing to notice that if i login and logout and then again login we are getting callback 2 time but again if i logout and login we are getting callback 3 time ...
it means it hold that callback into the memory block and call every time ..it increase by 1 every time
Please fill out the following details:
i - Call AuthHelper.loginIfRequired(callback1) at any point in the app, for example, at screen A.
ii - Logout from the app.
iii - Call AuthHelper.loginIfRequired(callback2) from a different place in the app, such as screen C
iv - After successfully logging in from screen C, observe that instead of calling callback2 directly on screen C, it first calls callback1 on screen A and then callback2 on screen C.
Note that subsequent calls to AuthHelper.loginIfRequired after login will execute all previously passed callbacks, regardless of their origin.
AuthHelper.loginIfRequired retaining previously passed closures and executing all of them when next time it gets call
Should only execute the last call back passed to it
No error logs
The text was updated successfully, but these errors were encountered: