a73fb5d04a
* 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
12 lines
369 B
JSON
12 lines
369 B
JSON
{
|
|
"build": {
|
|
"env": {
|
|
"AUTH0_DOMAIN": "YOUR_AUTH0_DOMAIN",
|
|
"AUTH0_CLIENT_ID": "YOUR_AUTH0_CLIENT_ID",
|
|
"AUTH0_CLIENT_SECRET": "@auth0_client_secret",
|
|
"REDIRECT_URI": "https://my-website.now.sh/api/callback",
|
|
"POST_LOGOUT_REDIRECT_URI": "https://my-website.now.sh/",
|
|
"SESSION_COOKIE_SECRET": "@session_cookie_secret"
|
|
}
|
|
}
|
|
}
|