Closed amccague closed 11 years ago
Ok I looked closer and realised in the code it should behave as I expected, narrowed it down to the fact I was providing both the authentication object to NXOAuth2Connection as well as passing it a signed NSURLRequest which led to complications. Should have only passed the object and a standard request.
Using NXOAuth2Request/NXOAuth2Connection. When the refreshToken is used to fetch a new accessToken - if a new refreshToken is sent (every time in the case of Box) does it update the stored refreshToken as well?
I'm quite sure mine crapped out and removed the account from the sharedStore the moment it couldn't refresh.
I had a brief look through the source code and it looks like even if a new accessToken is fetched, it isn't stored permanently (it just updates the existing account object). I will look again in the morning though as it's quite late.