Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

forget() doesn't logout user completely #8

Open
gregorymaertens opened this issue Dec 27, 2017 · 1 comment
Open

forget() doesn't logout user completely #8

gregorymaertens opened this issue Dec 27, 2017 · 1 comment

Comments

@gregorymaertens
Copy link
Contributor

Hello,

when calling forget(), it clears the auth data in local storage so the oauth can start again. However, since it uses native web views and cookies are not cleared, one faces the same issue as described by this user: spotify/ios-sdk#151
Basically the data from the previous user remains in the webview.

Is it possible to have a way to perform completely a logout?
=> clear the cookies? Not sure it's the best way with SFSafariWebView
=> open logout page for spotify auth (didn't find the URL). See https://github.com/OAuthSwift/OAuthSwift/wiki/Logout

Thanks!
Greg

@mraerino
Copy link
Member

Thanks for the suggestion!

One could certainly clear the cookies of the Spotify auth domain. Calling the logout page seems a little complicated.

We are not really focussing on maintaining this plugin currently, but if you'd like to prepare a PR, we'd be really happy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants