Skip to content

Supporting multiple logged in Users

joeldev edited this page Mar 15, 2013 · 2 revisions

ADNKit makes this very easy. ANKClient represents an authenticated session for a single user, so instead of using ANKClient sharedClient for everything, simply alloc/init an ANKClient for each user and use the correct instance for requests.

Of course, this also means that you need to persist multiple accessTokens across app launches and to set up a new ANKClient for each saved accessToken when the app is launched.