-
Notifications
You must be signed in to change notification settings - Fork 396
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
Incompatibility with next ^14.2.4 #1776
Comments
I'm seeing similar issues in other 14.2.* releases, where the error causing the failures is |
@adamjmcgrath or other maintainers: Are you planning on upgrading the Next-js version to 14 (and soon 15) in this repo? |
We've noticed the same errors. I believe (but not 100% sure) that it started with Next.js v14.2.7. We also have an custom |
Hi all 👋 I've tried to reproduce the issue @davies-a describes with the
The following auth handler import { handleAuth, handleCallback } from "@auth0/nextjs-auth0";
export const GET = handleAuth({
callback: handleCallback({
async afterCallback(req, session, state) {
return session;
},
}),
}); A page with the following components and the "use client";
import { useUser } from "@auth0/nextjs-auth0/client";
export default function Index() {
const { user, error, isLoading } = useUser();
if (isLoading) return <div>Loading...</div>;
if (error) return <div>{error.message}</div>;
if (user) {
return (
<div>
Welcome {user.name}! <a href="/api/auth/logout">Logout</a>
</div>
);
}
return <a href="/api/auth/login">Login</a>;
} However, I have not been able to reproduce the "hanging" behaviour being described nor the Would you be able to provide some minimal reproduction of the error you're seeing as a GitHub repository so we can dig into it further? As an aside, we're also working on a new version of the SDK that will fix some existing issues, improve compatibility with the latest Next.js versions (including Next 15), and provide a better overall DX. |
Hi, Seeing this same error on v14.2.*. My Next.js app is locally hosted, with my website domain setup via The above has worked without issue since Next.js v13, and again on v14.1.* until recently upgrading to v14.2.* . Took a while to realize this was a Next.js problem after updating a number of other dependencies. The actually issue: the I guess we'll patiently wait for Next.js v15 support, then will return to this issue if it persists in v15. |
Checklist
Description
Hi there - apologies if this is the wrong place, just thought we'd raise the below. We use Next JS with this plugin in our frontend application, using the
useUser
hook. Following a dependabot update we movednext
from"^14.2.4"
to "^14.2.12"; following this adjustment the useUser hook started hanging when calling the auth0 API. We've not had time to investigate further, but wanted to open the issue in case others are encountering this (since it's a relatively early change).Reproduction
package.json
: "@auth0/nextjs-auth0": "^3.5.0", "next": "^14.2.12",It's a closed repo and we've not had time to investigate fully, but we can do some investigation/question-answering if this is a live issue.
Additional context
No response
nextjs-auth0 version
3.5.0
Next.js version
14.2.12
Node.js version
20.11.1
The text was updated successfully, but these errors were encountered: