You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m using a basic Next.js setup created with create-next-app and followed the Getting Started guide for Auth0 to set up Auth.js. However, I’m encountering the following error:
[auth][error] InvalidEndpoints: Provider "auth0" is missing both `issuer` and `authorization` endpoint config. At least one of them is required. Read more at https://errors.authjs.dev#invalidendpoints
at assertConfig (webpack-internal:///(rsc)/./node_modules/@auth/core/lib/utils/assert.js:92:24)
at Auth (webpack-internal:///(rsc)/./node_modules/@auth/core/index.js:88:95)
at async C:\Users\codya\Desktop\my-login-app\node_modules\next\dist\compiled\next-server\app-route.runtime.dev.js:6:55038
at async ek.execute (C:\Users\codya\Desktop\my-login-app\node_modules\next\dist\compiled\next-server\app-route.runtime.dev.js:6:45808)
at async ek.handle (C:\Users\codya\Desktop\my-login-app\node_modules\next\dist\compiled\next-server\app-route.runtime.dev.js:6:56292)
at async doRender (C:\Users\codya\Desktop\my-login-app\node_modules\next\dist\server\base-server.js:1377:42)
at async cacheEntry.responseCache.get.routeKind (C:\Users\codya\Desktop\my-login-app\node_modules\next\dist\server\base-server.js:1587:40)
POST / 303 in 49ms
I’ve configured my environment variables in .env.local (shown below) with their respective values by navigating to Applications > MyApp > Settings in the Auth0 dashboard.
NODE_ENV=development
AUTH_SECRET=[obtained by executing npx auth secret]
AUTH_AUTH0_ID=
AUTH_AUTH0_SECRET=
AUTH_AUTH0_DOMAIN=
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I’m using a basic Next.js setup created with create-next-app and followed the Getting Started guide for Auth0 to set up Auth.js. However, I’m encountering the following error:
I’ve configured my environment variables in
.env.local
(shown below) with their respective values by navigating to Applications > MyApp > Settings in the Auth0 dashboard.I've created a sample repo that produces the problem: https://github.com/codyafingerson/my-login-app
Am I going wrong somewhere?
Beta Was this translation helpful? Give feedback.
All reactions