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
Authorization: updates SDK methods to automatically attempt to refresh tokens when 401 errors are encountered. (#251) (8d91cea)
AuthorizationManager no longer refreshes tokens on initialization. If you would like to continue to use this behavior, call manager.refreshTokens() directly from your application (after initialization).
Events can be bound to an AuthorizationManager on creation by passing an events property in the configuration. This ensures listeners can be bound before initial (constructor) events dispatch.
When a manager is provided to SDK methods, if a 401 is encountered the method will attempt to refresh the previous token used (when refresh tokens are enabled) and make the request again with a new token. This will only be attempted once, per method.