mirror of
https://github.com/OAuthSwift/OAuthSwift.git
synced 2026-04-26 12:45:52 +03:00
[GH-ISSUE #130] Logout process #81
Labels
No labels
bug
cocoapod
duplicate
enhancement
feature-request
help wanted
help wanted
invalid
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/OAuthSwift#81
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @lokatorius on GitHub (Oct 21, 2015).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/130
Hello,
I was trying to make logout functionality with oauthswift. But I was not able to figure out how to do it.
Now it is connecting automatically every time. How to switch users?
Thank you for your help.
@phimage commented on GitHub (Oct 21, 2015):
did you use a webview? sometimes cookies must be deleted to change user
then you could recreate an OAuthSwift object
or edit credential : reset oauth_token, oauth_token_secret and maybe other things
depending on the used api, you could revoke the token before doing that
edit: I wil close until you don't answer, but I can reopen If you want
@lokatorius commented on GitHub (Nov 15, 2015):
Thank you for the answer it solved the issue.
@sourov2008 commented on GitHub (Feb 28, 2016):
Hey I am using webview and trying to make logout functionality with oauthswift
After first login web view appear as a blank and immediately open an alert box for confirming open the app .
I have a Disconnect/Logout button in my apps . When user tap the button I tried to delete the cookies
But not working .
I have tried to reset oauth_token, oauth_token_secret .
but nothing work properly .
@phimage commented on GitHub (Feb 28, 2016):
There is two type of webview, say the class name...
@sourov2008 commented on GitHub (Feb 28, 2016):
Still now I am using OAuthSwiftDemo
and it seems using WebViewController.swift class ->UIViewController->UIWebView
@phimage commented on GitHub (Feb 29, 2016):
try also reset cache
and after deleting cookies, do a NSUserDefaults standardUserDefaults synchronize 'i read on stackoverflow
@Rushabh5 commented on GitHub (Jan 27, 2025):
@lokatorius How did you achieve this? Can you please share your code here for logout process?