Skip to content
This repository has been archived by the owner on Jun 2, 2021. It is now read-only.

v9.0.0

Compare
Choose a tag to compare
@edx-travis edx-travis released this 05 Nov 22:08
· 10 commits to master since this release
de68ed4

9.0.0 (2019-11-05)

Features

BREAKING CHANGES

  • (Behavior Change) Frontend-auth intercepts outbound requests and attempts to refresh the jwt token if it does not exist or is expired. In the case of a 401 response indicating that the user is logged out, frontend auth will not redirect the user to login, and will allow the outbound request to proceed. Prior behavior: Upon receiving a 401 response, frontend-auth would block the request and redirect the user to login.

ensureAuthenticatedUser continues to redirect if the user is logged out.

API Changes

  • getAuthenticatedAPIClient has been renamed to getAuthenticatedApiClient. Note the capitalization changes: API > Api.
  • redirectToLogout (formerly apiClient.logout)
  • redirectToLogin (formerly apiClient.login)
  • ensureAuthenticatedUser (formerly apiClient.ensureAuthenticatedUser)

See the updated README for more details.