GetProvider() returns undefined / null #4351
Replies: 5 comments 19 replies
-
This is an likely an issue with |
Beta Was this translation helpful? Give feedback.
-
An update: I have updated React, Next and NextAuth to... I am still receiving the same error: My app: |
Beta Was this translation helpful? Give feedback.
-
Hi, the same code as the example is showing me the providers properly. I am sorry for the misunderstanding |
Beta Was this translation helpful? Give feedback.
-
i had same problem here. When I was running it using While I was debugging the problem, it seems that even using inbuilt fetch or axios on url In the end i had to change |
Beta Was this translation helpful? Give feedback.
-
For me, the issue happens when Deployment Protections are enabled. Clearing cookies or disabling Deployment Protections fixes it. |
Beta Was this translation helpful? Give feedback.
-
Environment
{
"name": "t5customerportal",
"version": "0.2.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start"
},
"dependencies": {
"@emotion/react": "^11.8.1",
"@emotion/styled": "^11.8.1",
"@mui/icons-material": "^5.4.4",
"@mui/material": "^5.4.4",
"@mui/x-data-grid": "^5.6.1",
"@mui/x-data-grid-generator": "^5.6.1",
"@mui/x-data-grid-pro": "^5.6.1",
"axios": "^0.26.1",
"classnames": "^2.2.6",
"mui-datatables": "^4.1.2",
"multer": "^1.4.4",
"next": "12.1.0",
"next-auth": "^4.2.1",
"next-connect": "^0.12.2",
"pino": "^7.9.2",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-transition-group": "^4.4.2",
"sentry": "^0.1.2",
"sharp": "^0.30.3"
}
}
Reproduction URL
https://next-auth.js.org/configuration/pages
Describe the issue
Using the example from the website... it returns null and crashes
How to reproduce
just copy and paste the example from the website
Expected behavior
getting a customized page
Beta Was this translation helpful? Give feedback.
All reactions