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
{{ message }}
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.
Hi, I'm using SimpleAuth/FacebookWeb and SimpleAuth/TwitterWeb in my new app. I want to know what is the easiest/safest way to remove tokens in order to logout a user ? I want to be able to prompt the login interface each time and not just use stored accounts. Can you please help me figure it out ? Thanks.
The text was updated successfully, but these errors were encountered:
@iMedHelmi SimpleAuth doesn't store login tokens for you, it's up to you to know whether the user is logged in. I'd recommend storing the tokens you receive in the keychain, so not anyone can see them, and when you want to log out a user, remove them from the keychain.
Thank you @mergesort for your answer. The thing is, once a user is logged in, when I call [SimpleAuth authorize:@"facebook-web" completion:^(id responseObject, NSError *error)], the modal login controller is presented and immediately dismesses returning the last logged in user data. I though SimpleAuth stores somewhere the access tokens. So is it something related to cache in the webview ?
Hi, I'm using SimpleAuth/FacebookWeb and SimpleAuth/TwitterWeb in my new app. I want to know what is the easiest/safest way to remove tokens in order to logout a user ? I want to be able to prompt the login interface each time and not just use stored accounts. Can you please help me figure it out ? Thanks.
The text was updated successfully, but these errors were encountered: