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

[Feature Request]Multiple accounts #51

Open
arbyruns opened this issue Sep 7, 2022 · 8 comments
Open

[Feature Request]Multiple accounts #51

arbyruns opened this issue Sep 7, 2022 · 8 comments

Comments

@arbyruns
Copy link

arbyruns commented Sep 7, 2022

I've been playing around with the ability to add multiple accounts, but I'm not seeing that as a possibility. Am I missing something?

@ramzesenok
Copy link

One Twift client should be responsible for one user. If you want to support multiple users you can replace old Twift client bound to user1 with a new client bound to user2

@arbyruns
Copy link
Author

@ramzesenok thank you! I'll give this a try.

@arbyruns arbyruns reopened this Jan 8, 2023
@arbyruns
Copy link
Author

arbyruns commented Jan 8, 2023

@ramzesenok I went ahead and gave this a shot and the problem I'm running into is that when Twift.Authentication() method is called the current account is still logged in and no way to log that account out.

@ramzesenok
Copy link

@arbyruns you mean in the browser that is opened to confirm login?

@arbyruns
Copy link
Author

@ramzesenok correct. I think it has to do with ASWebAuthenticationSession. If launch safari Twitter is logged in. If I log myself out the new session does not have me logged in. Does that make sense?

@ramzesenok
Copy link

@arbyruns totally, this is how it works and it has nothing to do with Twift. If you want to log in a different user you first have to log out from the current user in browser

@arbyruns
Copy link
Author

@ramzesenok I wonder if adding support prefersEphemeralWebBrowserSession would help with this? My understanding is that the session in Safari does not need to remain logged in. However, the other challenge I'm finding with adding support for prefersEphemeralWebBrowserSession is that I can't ever get to authorization pages on Twitter.

@ramzesenok
Copy link

@arbyruns I believe it shouldn't log out cause the same account will be used when you use Twitter's web version

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

No branches or pull requests

2 participants