# Connected Auth0 with React and Express

**URL:** <https://community.auth0.com/t/connected-auth0-with-react-and-express/81231>\
**Category:** Get Help\
**Tags:** api, auth0, login\
**Created:** [April 6, 2022, 7:04am UTC](https://community.auth0.com/t/connected-auth0-with-react-and-express/81231 "2022-04-06T07:04:53Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![daxeshshukla6](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/daxeshshukla6/32/33194_2.png) [@daxeshshukla6](https://community.auth0.com/u/daxeshshukla6)\
**Post date:** [April 6, 2022, 7:04am UTC](https://community.auth0.com/t/connected-auth0-with-react-and-express/81231/1 "2022-04-06T07:04:53Z")

</div>

I created login page in react and user created in expressjs i want to authenticate that user with auth0 but don’t want to use auth0 login page is it possible? if yes how can i do that

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [April 7, 2022, 12:02am UTC](https://community.auth0.com/t/connected-auth0-with-react-and-express/81231/3 "2022-04-07T00:02:09Z")

</div>

Hey there @daxeshshukla6 welcome to the community!

When you say that you don’t want to use the Auth0 login page, I assume you mean that you want a form of sorts embedded in your app wherein the user is not redirected to Auth0 at all, but rather your app makes Authentication/Authorization calls out to Auth0 itself.

If that’s the case, it should be possible using an embedded login approach - However, it’s important to note that this is no longer recommended and the pros/cons of Universal (redirect to Auth0) vs. Embedded login are outlined [here](https://auth0.com/docs/authenticate/login/universal-vs-embedded-login).

Let us know!

---

<div class="post-metadata">

**Author:** ![daxeshshukla6](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/daxeshshukla6/32/33194_2.png) [@daxeshshukla6](https://community.auth0.com/u/daxeshshukla6)\
**Post date:** [April 13, 2022, 12:29pm UTC](https://community.auth0.com/t/connected-auth0-with-react-and-express/81231/4 "2022-04-13T12:29:56Z")

</div>

Authentication/Authorization will be done by the Auth0 only loginpage (UI) is mine

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [April 19, 2022, 12:27am UTC](https://community.auth0.com/t/connected-auth0-with-react-and-express/81231/5 "2022-04-19T00:27:46Z")

</div>

Sorry for the delayed response here!

Here’s an example of an embedded login using React/Redux if that is indeed what you are looking for:

> **[GitHub - auth0-samples/react-redux-embedded-login: Offers a comprehensive...](https://github.com/auth0-samples/react-redux-embedded-login)**
>
> Offers a comprehensive sample using modern react & redux libraries on how to achieve a custom UI embedded login - GitHub - auth0-samples/react-redux-embedded-login: Offers a comprehensive sampl...

Hope this helps!

---

<div class="post-metadata">

**Author:** ![daxeshshukla6](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/daxeshshukla6/32/33194_2.png) [@daxeshshukla6](https://community.auth0.com/u/daxeshshukla6)\
**Post date:** [April 19, 2022, 4:58am UTC](https://community.auth0.com/t/connected-auth0-with-react-and-express/81231/6 "2022-04-19T04:58:39Z")

</div>

Thanks for the response but i want backend also how can i call authentication apis to my backend

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [April 22, 2022, 11:28pm UTC](https://community.auth0.com/t/connected-auth0-with-react-and-express/81231/7 "2022-04-22T23:28:23Z")

</div>

Sorry for the delayed response!

Have you had a chance to look at our Express quickstart and/or sample app? The quickstart is helpful, but I definitely recommend taking a look at the sample app as it’s pretty straightforward to set up and get running out of the box. You can find those here:

> **[Auth0 Express SDK Quickstarts: Login](https://auth0.com/docs/quickstart/webapp/express/01-login)**
>
> This tutorial demonstrates how to add user login, logout, and profile to a Node.js Express application.

> **[auth0-express-webapp-sample/01-Login at master ·...](https://github.com/auth0-samples/auth0-express-webapp-sample/tree/master/01-Login)**
>
> master/01-Login

This article is also super helpful if you’re interested in a more high-level architectural view of a SPA + API relationship:

> **[Single-Page Applications (SPA) with API](https://auth0.com/docs/get-started/architecture-scenarios/spa-api)**
>
> Explains the architecture scenario where a single-page application (SPA) talks to an API using OpenID Connect (OIDC), and the OAuth 2.0 Implicit Grant Flow, to authenticate users with Auth0.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![daxeshshukla6](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/daxeshshukla6/32/33194_2.png) [@daxeshshukla6](https://community.auth0.com/u/daxeshshukla6)\
**Post date:** [April 25, 2022, 9:24am UTC](https://community.auth0.com/t/connected-auth0-with-react-and-express/81231/8 "2022-04-25T09:24:21Z")

</div>

Thank you for replying it’s really helped

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [April 25, 2022, 5:58pm UTC](https://community.auth0.com/t/connected-auth0-with-react-and-express/81231/9 "2022-04-25T17:58:11Z")

</div>

Awesome! No problem and happy to help 😄

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [May 10, 2022, 5:59pm UTC](https://community.auth0.com/t/connected-auth0-with-react-and-express/81231/10 "2022-05-10T17:59:08Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
