Trying out v4 beta, receiving generic error

An error occured while trying to initiate the login request.

I followed the instructions here, but I’m receiving the generic error above and I’m unable to make any headway. Does anyone have more detail about what specifically is wrong?

Side note, I’m also trying to upgrade to NextJs 15 (to resolve the caching introduced in previous versions). I read somewhere that v4 supports Next 15, so that’s why I’m trying it out now.

Hi @bryso,

Can you provide more information? I’m assuming from the error message that this error comes about after a login attempt. Is it when you click the login button? Do you see an error page or console errors apart from what you’ve shared?

As much information you can provide as possible will be helpful. Screenshots/screen recordings are also welcome.

Thanks,

Mary Beth

Hey Beth,

Yes, when I click a button that links to /auth/login. I’m guessing something is incorrect with my configuration with the Application URIs, but it was working before so I don’t know why they would suddenly be wrong :thinking:.

I’ve tried a number of different ways. First with my app I’ve been working on for the last year and I’m trying to upgrade. When that wouldn’t work, I tried the Sample-01 example that Auth0 provides for configuring Next apps. For this I made the necessary changes to upgrade it to v4. Finally I found another example specific to v4 here and tried that. All had the same issue. The video below shows what happens:

Link with video:

Thanks for the help :pray:

Hi @bryso,

Unfortunately, I cannot view that link. Can you share it another way? Following the Next.js Quickstart, the Allowed Callback URL needs to end in /api/auth/callback. So for localhost, it would be http://localhost:3000/api/auth/callback. Could you kindly try changing your Allowed Callback URL?

I look forward to your reply!

Thanks,

Mary Beth