nextjs-auth0

Next.js SDK for signing in with Auth0

MIT License

Downloads
864.9K
Stars
2K
Committers
79

Bot releases are hidden (Show)

nextjs-auth0 - v1.6.0

Published by auth0-oss about 3 years ago

Added

Fixed

  • Fix types in server-side withPageAuthRequired #512 (Widcket)
nextjs-auth0 - v1.5.0

Published by adamjmcgrath over 3 years ago

Added

nextjs-auth0 - v1.4.2

Published by Widcket over 3 years ago

Fixed

nextjs-auth0 - v1.4.0

Published by adamjmcgrath over 3 years ago

Added

  • withPageAuthRequired CSR now adds user to wrapped component props #405 (adamjmcgrath)

Fixed

  • env var substitutions now means you can define AUTH0_BASE_URL from VERCEL_URL in next.config.js #404 (adamjmcgrath)
nextjs-auth0 - v1.3.1

Published by adamjmcgrath over 3 years ago

Fixed

  • Use window.location.toString() as the default returnTo value #370 (Widcket)
  • returnTo should be encoded as it contains url unsafe chars #365 (adamjmcgrath)
nextjs-auth0 - v1.3.0

Published by adamjmcgrath over 3 years ago

Added

nextjs-auth0 - v1.2.0

Published by adamjmcgrath over 3 years ago

Added

  • Export UserContext for overriding default hook initialisation behaviour #325 (adamjmcgrath)

Fixed

  • returnTo should respect application’s basePath configuration #317 (Widcket)
nextjs-auth0 - v1.1.0

Published by adamjmcgrath over 3 years ago

Added

  • Add redirect_uri option to callback handler #298 (mariano)

Fixed

  • Chunked cookies should not exceed browser max #301 (adamjmcgrath)
  • Cleanup unused cookies when switching between chunked and unchunked #303 (adamjmcgrath)
  • New tokens should be applied to existing session after handleProfile #307 (adamjmcgrath)
nextjs-auth0 - v1.0.0

Published by adamjmcgrath over 3 years ago

New features

  • New suite of frontend tools:
    • useUser hook and UserProvider to simplify checking and managing the user’s logged in state on the client.
    • withPageAuthRequired higher order component to protect client side routes.
  • New handleAuth feature to reduce the amount of boilerplate required to set up the server side authentication handlers.
  • Simpler server side API where creation of an SDK instance is handled by the SDK.

Breaking changes

For a full list of breaking changes and migration guide, checkout the V1_MIGRATION_GUIDE.md

nextjs-auth0 - v1.0.0-beta.2

Published by adamjmcgrath over 3 years ago

Additions

  • Added afterRefetch hook option to handleProfile to modify the session after refetching it.
nextjs-auth0 - v1.0.0-beta.1

Published by Widcket over 3 years ago

Additions

  • Added a new way to configure the custom profile url. Now it can be configured with an environment variable as well.

Changes

  • The way to configure the custom login url has changed. Instead of passing it in every call to withPageAuthRequired now it can be configured with an environment variable.
  • The Vercel configuration docs have been updated with the latest guidance.

Fixes

  • Fixed a logout issue related to custom IdPs.
nextjs-auth0 - v0.16.1

Published by adamjmcgrath over 3 years ago

  • Updating dependencies with security issues
nextjs-auth0 - v1.0.0-beta.0

Published by adamjmcgrath almost 4 years ago

Install

npm install @auth0/nextjs-auth0@beta

New features

  • New suite of frontend tools:
    • useUser hook and UserProvider to simplify checking and managing the user’s logged in state on the client.
    • withPageAuthRequired higher order component to protect client side routes.
  • New handleAuth feature to reduce the amount of boilerplate required to set up the server side authentication handlers.
  • Simpler server side API where creation of an SDK instance is handled by the SDK.

Breaking changes

For a full list of breaking changes and migration guide, checkout the V1_MIGRATION_GUIDE.md

Changes