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.
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.
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.
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.