December 10 Auth0 Community Ask Me Anything: Unlocking the Power of the Auth0 and Next.js

Thanks for the question Luke, it looks like the PR is in the works for approval but checking with the team on this now. Will confirm the status in the next 24hrs. React is def actively maintained so its def a priority for us to make React 19 available in our SDK to devs ASAP. Will have a follow-up for you shortly.

1 Like

I would like to achieve the following: By using handleLogin on the Next.js side, I expect the SNS authentication process to occur at ${domain}/u/login/identifier?state=. Since social authentication is the only method allowed, user registration is not possible. However, I want to give the appearance that users can register, and I want to dynamically change the page title to either “User Registration” or “Login” based on the context.

Is there a way to pass query parameters to modify the title displayed on this page?

Any movement on this?

Hi Kevin,

This is Abhishek M Jadhav. In my Angular app I have integrated the login feature using Auth0. I am able to see the OKTA login popup and able to to signin using google login option in the popup. It also shows me the access_token and id_token in response that I receive after login. However, I see the error message - “Cross-Origin-Opener-Policy policy would block the window.close call.”

I have added my angular app as allowed origin in my application settings in Auth0. Also I did some research for CORS on Auth0 website and they suggested that since some browsers block 3rd-party cookies, so the below code should fix the issue:

I added the above code in my index.html of my angular app, but I get a different error now as below:

Uncaught SyntaxError: Failed to execute ‘postMessage’ on ‘Window’: Invalid target origin ‘undefined’ in a call to ‘postMessage’.
at CrossOriginAuthentication.callback (cross-origin-authentication.js:155:20)
at WebAuth.crossOriginVerification

Please advise and help, I am struggling. Also there is not much answers on the web as the community is very small with regards to Auth0 knowledge.

Please let me know if you need any more details regarding my code. Sorry I could not share any error screenshot despite the upload option as the site is giving error that I cannot embed any image.

Many thanks,
Abhishek M Jadhav