crowdin/mobile-sdk-ios

Infinite authentication loop

PeHk opened this issue · 0 comments

PeHk commented

Describe the bug
I have fresh install of the app using Crowdin SDK with floating settings button. I used it for login - enter credentials and hit "Remeber login", I've been successfully authenticated and I can use additional features through floating settings button. After a while I hit logout and I am successfully logged out from the SDK.

Afterwards I have decided to login again with different account but I can't - it will automatically use credentials from the web cache due to "Remeber login" option. So far I have found solution only with reinstalling the whole app again.

To Reproduce
Steps to reproduce the behavior:

  1. Go to floating settings button
  2. Click on Log in and hit "Remember me" in authentication in a a web-view
  3. Click on Log out option in floating settings
  4. Click on Log in again in floating settings button
  5. Web view automatically authenticate the user and closes without option to change the credentials

Expected behavior
After successful logout the web view cache should be deleted as well.

Smartphone (please complete the following information):

  • Device: iPhone 12 Pro, iPhone 13 Pro
  • OS: iOS 16.X, 17.X