This is regarding implementing authentication using Auth0 on our site that is powered by Express.
So I looked at: Auth0 Express SDK Quickstarts: Login and saw that the login page is provided by default with the express-openid-connect and takes the user to the universal login page.
But what I need to do is handle the authentication on my website using Lock or something on my page and then do the rest using Express.
Hope my question is clear. Please let me know if any more clarifications are needed.
Thanks in advance!
Welcome to the Auth0 Community!
I understand that you’d like to use a combination of 2 SDKs with your application.
First, I’d like to clarify that the Universal Login Page uses the Auth0 Lock under the hood. Given that, you’ll likely want to use the Auth0 Express SDK Quickstarts: Login to implement authentication onto your app.
However, if you plan on having an embedded login in your app, then you’ll need to use the Auth0 JS SDK.
You can learn more about the difference in our Centralized Universal Login vs. Embedded Login documentation.
Please don’t hesitate to reach out if you have any further questions
Hello @rueben.tiow Thanks for the reply!
I just read through the links you provided.
What I need to know is if we can customise the embedded login to work with the express JS SDK so that we can serve the login page on our domain but handle the rest on the backend with express.
I tried to look into the code for both express-openid-connect and lock but didn’t understand how it works.
Any help would be great!
Thanks in advance!
Thank you for your response.
Yes, you can use Auth0 JS SDK with the Express JS SDK if needed.
Please take a moment to review our Embedded Login documentation which emphasizes that it’s preferred to use Embedded Login with Custom Domains to prevent cross-origin authentication issues. Bear in mind that Custom Domain is a paid feature.
I hope this answers your question.
Please let me know if there’s anything else I can do to help.
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.