This repository has been archived by the owner on Jun 2, 2021. It is now read-only.
v9.0.0
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 togetAuthenticatedApiClient
. Note the capitalization changes: API > Api.redirectToLogout
(formerlyapiClient.logout
)redirectToLogin
(formerlyapiClient.login
)ensureAuthenticatedUser
(formerlyapiClient.ensureAuthenticatedUser
)
See the updated README for more details.