Releases: 42BV/react-authentication
Releases · 42BV/react-authentication
v1.2.1
- chore: updated dependencies a18679c
v1.2.0
v1.1.3
- fix: include sources in source maps db80c71
v1.1.2
- chores: update dependencies 885f74a
v1.1.1
v1.1.0
Bugfix: authorized route incorrectly remembers past route
configureAuthentication
now accepts a dashboardRoute
which is
used to redirect logged in users trying to access an AuthorizedRoute
which they do not have the authorization for.
In addition configureAuthentication
now uses a default configuration
which has the following values:
{
authenticationUrl: '/api/authentication',
currentUserUrl: '/api/authentication/current',
loginRoute: '/login',
dashboardRoute: '/'
}
Additional changes:
- Updated docs code examples to use
tsx
format - Updated dependencies
- Set Travis to 10.16.3 instead of 10
v1.0.0
Breaking changes 🚨🚨🚨
The 1.0.0 version has the following breaking changes:
PrivateRoute
and AuthorizedRoute
no longer accept a component
as property.
You should now upgrade as follows:
From:
<AuthorizedRoute component={AdminPage} path="/admin" authorizer={someFunction} />
<PrivateRoute component={AdminPage} path="/" />
To:
<AuthorizedRoute path="/admin" authorizer={someFunction}>
<AdminPage />
</AuthorizedRoute>
<PrivateRoute path="/">
<AdminPage />
</PrivateRoute>