Replies: 78 comments 1 reply
-
Thank you for the beta release! Do you have any migration documentation or best practices available? |
Beta Was this translation helpful? Give feedback.
-
@curry1337 we do have a comprehensive documentation that you can refer to- https://github.com/auth0/nextjs-auth0/blob/v4/README.md. Hope this helps! |
Beta Was this translation helpful? Give feedback.
-
@brth31 The documentation is lacking a coherent migration strategy for those using earlier versions; so far advice from the only auth0 engineer in these threads has delivered application-breaking fixes that actually made our application less secure. I would disagree with the use of the word "comprehensive" in your previous comment, and I disagree with a product strategy that ignores what paying customers are telling you about this release's clear unreadiness for use in production environments. |
Beta Was this translation helpful? Give feedback.
-
@brth31 Thanks, what about the Edge Runtime? Couldn't find anything about it in the Readme. Is import { Auth0Client } from "@auth0/nextjs-auth0/server" replacing the old edge? |
Beta Was this translation helpful? Give feedback.
-
@curry1337 not representing auth0 or Vercel, but happy to help a fellow engineer: Vercel reverted all edge rendering back to Node.js seven months ago, so the distinction is currently moot from a practical standpoint (although the Edge API remains in the Next.js docs, so Edge rendering may return in time, so it makes sense you would want the auth0 adapter to ensure support for it). Hope this helps you and your team plan for the future! |
Beta Was this translation helpful? Give feedback.
-
@johncarmack1984 Wow thanks so much for sharing, really appreciated! |
Beta Was this translation helpful? Give feedback.
-
Is there, or will there be, a way to use this without middleware? Middleware only feels like more of a limitation, rather than a "feature". Update: After some testing, it seems like we're able to use the |
Beta Was this translation helpful? Give feedback.
-
I have tried (albeit a bit “commending myself to god”) to implement from 0 in a totally clean project using the initial steps indicated in the “getting started” article of NextJS 15. I followed the steps they mention in v4 beta, but not only is it not entirely clear, but it didn't work for me. Is there any place where you can give a “practical” example or a test repo, or a sandbox to see how you implement it? |
Beta Was this translation helpful? Give feedback.
-
Hi @portal7, I have a project that will be deployed to NextJs 15, and the Auth0 SDK is delaying us. We're going to wait for version 1.0 of SDKv4. In the meantime, I created a basic example to see how it works. You can check it out to get an idea. |
Beta Was this translation helpful? Give feedback.
-
Thanks!!! I really appreciate it, I'm going to try it out and then.... we'll see. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Oh, this is because of npm i, many packages need to specify the version of React 19 to avoid that issue. |
Beta Was this translation helpful? Give feedback.
-
@uprizingFaze , thanks for the clarification, I will read the explanation to improve my knoweldge. After rename and fil the values inside the .env.local values was able to run it with any other console error. Same as my capture with a fresh-started project with the new package installed. |
Beta Was this translation helpful? Give feedback.
-
It is likely due to the Auth0 environment variables or the URLs in the Auth0 dashboard. |
Beta Was this translation helpful? Give feedback.
-
Well, after configuring the variables again in auth0 with the indicated values (I registered a new app so as not to modify what I had) and it worked. The strange thing was that when I clicked on logout, I got an error that the value of the logout URL that I had passed was not valid. And this is my configuration on Auth0 this was fixed when I added http://localhost:3000 (what the Auth0 error page said) as an enabled value. Thanks @uprizingFaze |
Beta Was this translation helpful? Give feedback.
-
@chammond3 I'm having the same issue as you - Invalid URL happening in the middleware file. I'm on v4.0.1. Is there a solution? I have the correct env variables so I'm not sure what the issue is. UPDATE: It appears that changing the env var from |
Beta Was this translation helpful? Give feedback.
-
Has anyone implemented a custom session store using redis or a database? Reading through the documentation I see how to setup the custom session store but not any implementation details. Thanks for any help in advance! |
Beta Was this translation helpful? Give feedback.
-
Excited about the release. Anyone else having issues with the search bar on the docs site? https://auth0.github.io/nextjs-auth0/modules.html |
Beta Was this translation helpful? Give feedback.
-
The amount of changes is substantial with no migration guide. This is extremely frustrating considering my company is spending a substantial amount of money for this. No way to get roles anymore - at least not clearly - because there is no idToken, just an access token. And, even with this, there's no documentation on how to obtain the roles from this. Cool new features, but the roll out is pretty rough. |
Beta Was this translation helpful? Give feedback.
-
Where are the docs for v3? |
Beta Was this translation helpful? Give feedback.
-
@jonkwheeler Older README versions can be found on the tagged releases. E.g. https://github.com/auth0/nextjs-auth0/tree/v3.6.0 |
Beta Was this translation helpful? Give feedback.
-
Yeah, but that's not the full docs. Try following those links. All broke now. I'm pretty sure I've exposed that |
Beta Was this translation helpful? Give feedback.
-
Has anyone had a positive experience? Wondering if I attempt the jump now that all v3 support is dropped, and I also can't use Next.js v15 unless I upgrade this now. (OR I fork v3) |
Beta Was this translation helpful? Give feedback.
-
@jonkwheeler we just updated to Next15 and we're forced to use v4. It was painful but we figured it out. It's pretty frustrating there's little documentation on this and the documentation is missing some key items. With v3 you use the api but with v4 you have to use middleware. I do like it better, but that's just because we figured out how to use it. Lots have changed. Can't use the same exported members as before. And have to create your own lib instantiating auth0. Metadata is no longer along with the user data. So you have to use the management sdk to get any data from metadata. |
Beta Was this translation helpful? Give feedback.
-
This is ridiculous. That lack of follow-up and response from the Auth0 team here is borderline negligent. I'm pissed off, and you should be too. Luckily, the original poster, @brth31, generously gave us his Calendly link on his Github profile. I set a meeting with him, and if you feel the same way I do, I encourage you to do the same. For example, is this the migration guide we are looking for? Hell if I know. |
Beta Was this translation helpful? Give feedback.
-
Took about a day to migrate a not very complicated site and it's been fine. The communication and documentation has left a lot to be desired and pushed us to seriously explore alternates because it's been so rocky. Just an incredible unforced error. |
Beta Was this translation helpful? Give feedback.
-
Sincere apologies for the radio silence here 🙏 The team probably had no visibility on the recent comments since the issue was marked as closed. I'm re-opening this issue and paging @tusharpandey13 and @arpit-jn for visibility. My calendly link is still open for anybody who is willing to share feedback on any of our SDKs. I'm also happy to do working sessions with our engineering team to solve your integration problems. Please add a note while booking the meeting, so that we can come prepared. Again, I really appreciate your patience here. We're working really hard to action all the feedback across other GitHub issues on this repo. In the spirit of transparency, here's the prioritised list of problems we're tackling for the upcoming releases:
In the upcoming weeks, you should see us making progress on the above issues. Happy to prioritise any other issues that are top of mind for you. |
Beta Was this translation helpful? Give feedback.
-
I have an onboarding modal that only shows up if the useUser hook returns a user with an email property that isn't 'typeof user?.email === 'undefined'' if there is an email, it will popup the modal IF the returned user object from the database doesn't have provided data that is needed by our application. What i'm experiencing since adopting 4.1 is that after sometime of being on the site sometimes the modal will pop up for a user - and after refreshing the user is no longer logged in. Its difficult to reproduce cause it requires some kind of session expiration to happen but i'm unsure of what is causing that expiration. Anyone have advice or suggestions on what may be the cause? EDIT: Setting 'absolute' and 'inactivity' durations low (1 second) doesn't trigger the same experience locally |
Beta Was this translation helpful? Give feedback.
-
In case it helps anyone, we decided we couldn't wait around for Auth0 to fix itself. After looking at WorkOS and Descope, we went to Descope. The experience has been quite nice. They have a Slack Community called AuthTown you can join and ask questions. |
Beta Was this translation helpful? Give feedback.
-
Is v4 compatible with Next14? I don't see Next15 as version requirement. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
We're thrilled to announce the beta release of nextjs-auth0 SDK v4! This new version brings significant improvements, new features, and fixes to enhance your development experience.
As we move forward, we will not be updating v3 of the SDK to support Next.js 15. This allows us to focus on v4, which offers a wealth of new features and improvements. This will also enable us to support future releases of Next.js faster and with more confidence. We understand this may pose challenges, and we're here to help.
v3 will continue to receive critical security updates for 6 months after the GA of v4.
📣 Highlights of v4 Beta
✍️ Try It Out and Provide Feedback
We invite you to explore the beta release and share your feedback to help us improve before the general availability release. We are currently targeting a general availability release by the end of December.
Beta Release: v4.0.0-beta.3
⛵ Need Help with Migration?
If you encounter challenges migrating to v4, please don't hesitate to open an issue and our team will assist you. We're committed to making the transition as smooth as possible.
Thank You for Your Support 🙌
We appreciate your understanding as we focus on making v4 the best it can be. Your feedback is invaluable, and we're here to support you every step of the way.
Happy coding! 🚀
— The Auth0 DX SDK Team
Beta Was this translation helpful? Give feedback.
All reactions