You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My app creates an account successfully after OAuth2 flow.
When I stop the app and restart, it fails when I try to use NXOAuth2Request SignedURLRequest.
Looks like the config info is not persisted ?
I am using iOS 8 in simulator.
Including the trace below...Any prompt help is really appreciated...
The only thing that is persistent are the access tokens (in the keychain). You need to make the calls to NXAccountStore each time the app starts before anything. I recommend doing that in +initialize of your app delegate.
My app creates an account successfully after OAuth2 flow.
When I stop the app and restart, it fails when I try to use NXOAuth2Request SignedURLRequest.
Looks like the config info is not persisted ?
I am using iOS 8 in simulator.
Including the trace below...Any prompt help is really appreciated...
terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'No token or no authorize URL'
*** First throw call stack:
(
0 CoreFoundation 0x000000010f248c65 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x000000010fad0bb7 objc_exception_throw + 45
2 CoreFoundation 0x000000010f248aca +[NSException raise:format:arguments:] + 106
3 Foundation 0x000000010f6e598f -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 195
4 OAuth2Client 0x000000010f0e1788 -[NXOAuth2Client initWithClientID:clientSecret:authorizeURL:tokenURL:accessToken:tokenType:keyChainGroup:keyChainAccessGroup:persistent:delegate:] + 600
5 OAuth2Client 0x000000010f0cd5d8 -[NXOAuth2Account oauthClient] + 1000
6 OAuth2Client 0x000000010f0d72df -[NXOAuth2Request signedURLRequest] + 303
7 OAuthTestApp1 0x000000010dd52164 -[TestPRWebViewController buildRequest] + 500
Thanks
The text was updated successfully, but these errors were encountered: