stevenlafl / threads-web-client

A web client for Meta's new Threads app
GNU General Public License v3.0
39 stars 10 forks source link

Multi account #2

Open thisisdice opened 1 year ago

thisisdice commented 1 year ago

I think multi account would be a game changer. There is currently no native way to manage more than 1 threads account in a device yet many of has have multiple IG’s.

stevenlafl commented 1 year ago

Great idea! I need to be sure the other functions work though before I do account switching, but it should easily be possible by storing the various account IDs (perhaps localStorage) and then rotating out the token cookie so that the app knows to return data associated with that account.

thisisdice commented 1 year ago

Yea I’ve put some together regarding session storage and retrieval hopefully push it this evening gmt If someone hasn’t got there already. This coupled with optional proxy support 😅🤓

stevenlafl commented 1 year ago

Perfect, I'll check it out when you're done and approve.

thisisdice commented 1 year ago

Have a gander! I think that’s the bulk of sessions until we get the full auth flow under wraps. https://github.com/threadsjs/threads.js/issues/34#issuecomment-1628351155