-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Cannot read properties of undefined (reading 'split') in openid-client #7230
Comments
The shake256.js file looks like this: next-auth pulls this in
Not really sure where to start with this one, perhaps a change on vercel has caused the issue because everything was working fine for ages, I push new build and all authentication breaks. Though I have managed to reproduce the error in dev now. |
You are likely using Note: |
@balazsorban44 Thank you for your response. What is strange though is everything was working fine in vercel until I pushed a new build with no changes to runtime config? Has vercel changed something that has caused this? Not sure where to look. |
@BEEFF Any luck on this one? Also starting yesterday I have been running into the exact same issue. Fresh |
@BEEFF FYI, the underlying issue for this problem appears to be related to the Short-term, I have just fixed that dep to the previous version... "overrides": {
"oidc-token-hash": "5.0.1"
} |
@sobencha-mz Did this work for you? Did not work for me :( |
This worked like a charm. We have been struggling since yesterday. |
For those of you using yarn, add the following to your package.json - "resolutions": {
"oidc-token-hash": "5.0.1"
} |
Worked like a charm for me too! Don't forget to run |
I'm getting this issue, but where it seems a package called 'jose' is the cause. It's got the exact same line of code in That seems to be the cause of the problems for both packages. |
I was able to resolve this issue, by using a webpack plugin in my next.config.js file
|
have the same problem, nothing worked. Has something to do with nodemailer I guess in my case |
I have this problem with the latest version of the chatbot repo: I made sure my Node version was up to date (v18). Attempted the above override (oidc-token-hash to v5.0.1). Tried installing the latest as an override (oidc-token-hash to v5.0.3). Then, after forking oidc-token-hash and addressing the underlying issue with a patch:
...I ran into:
After disabling the edge runtime (and "serverActions"), I thought I could get something running. Nope:
Which ultimately looks to be a Next Auth / AI Chatbot issue, so if I discover anything I'll report it on the appropriate bug over there: |
I'm having success using next-auth@beta with next 14 but not fully done yet |
This worked for me too |
Environment
I'm using NextJS, builds started failing on Vercel then I updated packages on dev and got the errors.
System:
Shell: 5.8 - /usr/bin/zsh
Binaries:
Node: 18.12.0 - ~/.nvm/versions/node/v18.12.0/bin/node
Yarn: 1.22.19 - ~/.nvm/versions/node/v18.12.0/bin/yarn
npm: 9.4.2 - ~/.nvm/versions/node/v18.12.0/bin/npm
Browsers:
Chrome: 110.0.5481.177
Firefox: 111.0.1
Reproduction URL
n/a
Describe the issue
Getting the following error when attempting to authenticate with nextjs with any provider.
In the shake256.js,
process.versions.node
isundefined
How to reproduce
My _app.js file:
Expected behavior
Authentication should be successful!
The text was updated successfully, but these errors were encountered: