Closed antontishkov closed 9 months ago
Are you executing step 1 and 2 in immediate succession?
I would guess there is just a time delay between signing out via the website and your local device (or simulator) updating the state (as this is likely cached, so it would also continue to work offline).
Have you tried logging out from the device instead? From my recollection of earlier tests that is reflected immediately.
Are you executing step 1 and 2 in immediate succession?
I tried this many times with different time gaps. Unfortunately the result always the same.
Looks like the problem is only in iOS Simulator. With the real device everything is working as expected.
Okay, then I would see this issue more as documentation for others experiencing similar problems, as I don't think there is something to be done on the client to react quicker to a change on web. (Otherwise I'd appreciate a link to the Apple docs, so we could add the same support in here.)
Generally there are a bunch of quirks when testing SiwA with the iOS simulator, and thus I would recommend to use a physical device whenever possible.
Apple reveals user name and email only for the very first authorisation attempt. So my steps to reproduce the issue are the following:
It always returns "CredentialState.authorized"... but why?
Testing on iPhone 15 Pro (ios simulator).