OneDrive / onedrive-sdk-ios

OneDrive SDK for iOS
https://dev.onedrive.com
Other
100 stars 88 forks source link

how to rebuild ODClient with token #165

Closed deco1515 closed 7 years ago

deco1515 commented 7 years ago

I got ODClient by calling ODClient.authenticatedClient. Now I want to rebuild ODClient in another device. what can I do?

kevklam commented 7 years ago

Unfortunately that isn't currently a supported scenario. It should be possible by writing your own ODAuthProvider or likely by subclassing an existing one, however there is a lot of convenience logic that is coded to specifically work with the existing auth providers that won't be usable (i.e. most of the stuff in ODClient+Authentication and ODClient+DefaultConfiguration).