-
Hi Sbertix :) Is there any way to support multi account? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hi Maria, That said, Swiftagram is completely agnostic to account management, as the priority was to support multi account from the start without any possibility of cookies getting messed up, etc. All you need to do is fetch a
DisclaimerThis is not a bug, so I'm moving this to the new Dicussions section of the repo.Please make sure you're using this instead next time, or the issue will be just deleted without any further explanation. |
Beta Was this translation helpful? Give feedback.
Hi Maria,
That said, Swiftagram is completely agnostic to account management, as the priority was to support multi account from the start without any possibility of cookies getting messed up, etc.
All you need to do is fetch a
Secret
for your "new" account (either throughBasicAuthenticator
,WebViewAuthenticator
or any custom one you might have built for yourself) and pass it around to unlock any endpoint you wish to use.Storage
s, by the default, and clearly I may add, support (virtually) unlimitedSecret
s.So, for instance, if you rely on
KeychainStorage
for caching your cookies,all()
helps you retrieve allSecret
s. Do you need to retrieve only a specific one for a given user? Just pas…