Skip to content

Releases: 42BV/react-authentication

v1.2.1

04 Feb 10:04
Compare
Choose a tag to compare
  • chore: updated dependencies a18679c

v1.2.0...v1.2.1

v1.2.0

03 Feb 16:06
Compare
Choose a tag to compare
  • chores: upgraded dependencies c78ab15
  • improvement: add support for axios 2aee679

v1.1.3...v1.2.0

v1.1.3

11 Jan 09:53
Compare
Choose a tag to compare
  • fix: include sources in source maps db80c71

v1.1.2...v1.1.3

v1.1.2

07 Jan 14:47
Compare
Choose a tag to compare
  • chores: update dependencies 885f74a

v1.1.1...v1.1.2

v1.1.1

24 Nov 11:46
Compare
Choose a tag to compare
  • added script and .github to npmignore 48f89b4
  • chore: upgraded all packages, removed travis for GitHub actions. 49fdc70

v1.1.0...v1.1.1

v1.1.0

11 Nov 15:04
Compare
Choose a tag to compare

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

26 Sep 13:24
Compare
Choose a tag to compare

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>