Skip to content
This repository was archived by the owner on Aug 6, 2019. It is now read-only.

6.0.0

Choose a tag to compare

@Tathanen Tathanen released this 01 Aug 20:55
· 14 commits to master since this release

Significant updates to the handling of unauthenticated requests:

  • unauthorizedInterrupt now accepts a function that will be run when an API call comes back as unauthorized. The original request will be re-run if the supplied function can resolve the authorization issue, and APIAuthorizationFailure will be broadcast if the issue cannot be resolved.
  • If unauthorizedInterrupt is set to a function, any other API calls that return as unauthorized while the first one is being resolved will be held in a queue and re-run if the first call is resolved successfully.
  • Specify loginPath to disable unauthorizedInterrupt functionality on your login page, safely allowing for semantically valid 401 responses to bad login credentials.

Breaking changes:

  • The APIRequestUnauthorized event and the functionality surrounding unauthorizedInterrupt now only applies to a 401 error response. Previously a 403 would trigger the same functionality.