I have an issue with refreshing access token.
Here is the list of steps followed to request access token.
Initialize NXOauth2Client
register for 2 notifications: NXOAuth2AccountStoreAccountsDidChangeNotification, NXOAuth2AccountStoreDidFailToRequestAccessNotification
Request access token with username & password.
received access token and refresh token
use "performmethod" of NXOAuth2Request, to get data from the api through a signed request.
And "performmethod", refreshes the access token if it's expired.
This flow seems to be working fine, and some time later the perform method is failing with the below error.
oauthConnection Error: {"error":"invalid_grant","error_description":"Provided Authorization Grant is invalid"}
Assuming that refreshing access token is failing,
Issues:
my app is not getting any kind of notification back from the NXOAuth2Store regarding the fail.
Neither in the notifications registered above nor in the delegate call back in the "performmethod"
Am i missing something?
I have also registered another observer for the notification, NXOAuth2AccountStoreDidFailToRequestAccessNotification and still didn't get any call back from the OAuthStore.
Hi Team,
I have an issue with refreshing access token. Here is the list of steps followed to request access token.
This flow seems to be working fine, and some time later the perform method is failing with the below error.
oauthConnection Error: {"error":"invalid_grant","error_description":"Provided Authorization Grant is invalid"}
Assuming that refreshing access token is failing, Issues: my app is not getting any kind of notification back from the NXOAuth2Store regarding the fail.
Neither in the notifications registered above nor in the delegate call back in the "performmethod"
Am i missing something?
Can you provide some suggestions.
Thanks,