I'm currently building an app using OAuth for authentication. Due to recent changes in the iOS 11 API I'd like to use the new SFAuthenticationSession to achieve this. The app already worked with the old SFSafariViewController and the switch to being able to log in with SFAuthenticationSession was very easy, so all is good until here.
But, this might be a stupid question: how do I log out? Invalidating the tokens is the easy part. But how do I clear the cookie on the login page? The way things are now I invalidate the tokens, reopen the SFAuthenticationSession, the login view pops up, it recognizes the cookie and logs the user in. Auth tokens are regenerated and we're back where we started.
So how do I clear the cookies?
Thanks in advance
(Also it wasn't clear in which board to post this. Sorry if I'm wrong here.)