ember-simple-auth icon indicating copy to clipboard operation
ember-simple-auth copied to clipboard

Any trigger have for _refreshAccessToken request failed?

Open ThemeSama opened this issue 5 years ago • 1 comments

Hi! I can't handle Refresh Token 401 response. Have any solution for this situation?

I looking oauth2-password-grant.js file and there is no trigger.

Regards, Themesama

ThemeSama avatar Nov 20 '19 08:11 ThemeSama

We solved this by overrriding the _scheduleAccessTokenRefresh function (copy paste the original implementation) and add an catch block to the this._refreshAccessToken in the run.later call.

Fabschu avatar Feb 05 '20 15:02 Fabschu