# The problem with Auth0 and React

**URL:** <https://community.auth0.com/t/the-problem-with-auth0-and-react/46064>\
**Category:** Get Help\
**Tags:** auth0, lock\
**Created:** [July 9, 2020, 9:10pm UTC](https://community.auth0.com/t/the-problem-with-auth0-and-react/46064 "2020-07-09T21:10:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![felipecbiondi](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/felipecbiondi/32/21994_2.png) [@felipecbiondi](https://community.auth0.com/u/felipecbiondi)\
**Post date:** [July 9, 2020, 9:10pm UTC](https://community.auth0.com/t/the-problem-with-auth0-and-react/46064/1 "2020-07-09T21:10:43Z")

</div>

Coding in React? Use `auth0-react`  
Oh, you don’t want the universal Login? How about `auth0-lock`?  
What? You ALSO want some UI freedom? How about `auth0-js` to make an embedded login?  
PKCE? Never heard of it… Maybe just let your backend open and forget about all of it

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [July 9, 2020, 10:41pm UTC](https://community.auth0.com/t/the-problem-with-auth0-and-react/46064/2 "2020-07-09T22:41:36Z")

</div>

@felipecbiondi,

Welcome to the Community. Is there a question in here? Or some feedback for our product team? We try to cover most common use-cases.

> [@felipecbiondi](#):
>
> Maybe just let your backend open and forget about all of it

😳 I wouldn’t recommend this.

---

<div class="post-metadata">

**Author:** ![felipecbiondi](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/felipecbiondi/32/21994_2.png) [@felipecbiondi](https://community.auth0.com/u/felipecbiondi)\
**Post date:** [July 9, 2020, 10:56pm UTC](https://community.auth0.com/t/the-problem-with-auth0-and-react/46064/4 "2020-07-09T22:56:28Z")

</div>

I’m currently in a choice loop between your SDKs, I know the pros and cons of each product but I need the following:

- Auth0 Login in my product page
  - Lock
  - Embedded

- PKCE flow to the same product page integrated with an open-source native app
  - Code Flow isn’t enough, according to Auth0’s documentation

Currently, no option can provide both. `auth0-react` is great to implement as a provider, but redirects to Universal Login, `auth0-lock/auth0-js` are turnarounds to keep the client inside my page but provides less security since I can’t use PKCE.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [July 9, 2020, 11:38pm UTC](https://community.auth0.com/t/the-problem-with-auth0-and-react/46064/5 "2020-07-09T23:38:23Z")

</div>

Thanks for explaining the use-case. I submitted the feedback to our product team. If you would like to make a feature request or just have general product feedback for our team in the future, you can submit it here:

> **[Auth0: Secure access for everyone. But not just anyone.](https://auth0.com/feedback)**
>
> Rapidly integrate authentication and authorization for web, mobile, and legacy applications so you can focus on your core business.

---

<div class="post-metadata">

**Author:** ![felipecbiondi](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/felipecbiondi/32/21994_2.png) [@felipecbiondi](https://community.auth0.com/u/felipecbiondi)\
**Post date:** [July 17, 2020, 5:47pm UTC](https://community.auth0.com/t/the-problem-with-auth0-and-react/46064/6 "2020-07-17T17:47:14Z")

</div>

Okay, thanks for the attention

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [July 17, 2020, 5:53pm UTC](https://community.auth0.com/t/the-problem-with-auth0-and-react/46064/7 "2020-07-17T17:53:12Z")

</div>

No problem, let us know if you have any other questions. Sorry for the frustrations!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [September 21, 2020, 3:51pm UTC](https://community.auth0.com/t/the-problem-with-auth0-and-react/46064/8 "2020-09-21T15:51:32Z")

</div>

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