1

After I finished the Microsoft Live oAuth, the LiveConnectSession is not nil and everything is working. But after I restart the simulator or device, the LiveConnectClient's LiveConnectSession is nil.

How do I persist the LiveConnectSession to keychain so I can make API request without the LiveConnectSession deallocating? If I only have to persist the access token, everything will be easy but the LiveSDK for iOS is using this LiveConnectSession object.

Schemetrical
  • 5,506
  • 2
  • 26
  • 43
yong ho
  • 3,892
  • 9
  • 40
  • 81

1 Answers1

1

In the LiveSDK, it will save the session by sdk itself, see this file LiveAuthStorage.m. If you want to persist the LiveConnectSession in LiveSDK-iOS, just give the wl.offline_access scope when login.

methode
  • 5,348
  • 2
  • 31
  • 42
Tim
  • 51
  • 6