Migrate auth0 example into Next.js repo (#8802)
* Add auth0 example
* Apply suggestions from code review
Co-Authored-By:
Joe Haddad <joe.haddad@zeit.co>
* Remove LICENSE
* Add create next-app section
* Update to latest @auth0/nextjs-auth0
* Update user handling
* Update profile link to use <Link>
* Update .env template to reflect guides
* Simplify example
* Update example to prefer API call (temporary hardcoded url)
* Simplify state and ensure rerenders don’t race
* Clear up import being commented
* Make code style consistent
* Update pages to reflect required auth on the client-side
* Memoize the user on window
* Update now.json instruction
* Remove meta fields
* Update docs with explanation
* Update UI for auth0 example
Showing
examples/auth0/.env.template
0 → 100644
examples/auth0/.gitignore
0 → 100644
examples/auth0/README.md
0 → 100644
examples/auth0/lib/auth0.js
0 → 100644
examples/auth0/lib/user.js
0 → 100644
examples/auth0/now.json
0 → 100644
examples/auth0/package.json
0 → 100644
Please
register
or
sign in
to comment