Skip to content

a simple example that shows how to use next.js with auth0

License

Notifications You must be signed in to change notification settings

timReynolds/next.js-auth0

 
 

Repository files navigation

next.js-auth0

a simple example that shows how to use next.js with auth0

You can access a simple demo here: https://nextjs-auth0.now.sh

Setup

  • Install yarn
  • Create an account at Auth0 (https://auth0.com)
  • Add your endpoints to your client's allowed urls like this
  • Add your logout endpoint to your account allowed urls like this
  • Copy the file config.sample.json at the root folder, rename it as config.json and add your Auth0 keys

Running Locally

git clone https://github.com/luisrudge/next.js-auth0.git
cd next.js-auth0
yarn
yarn dev

Deploying to now.sh

If you want to deploy to now, make sure you update your package.json file's now.alias configuration key to your own alias.

About

a simple example that shows how to use next.js with auth0

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%