# Auth0-react embedded

**URL:** <https://community.auth0.com/t/auth0-react-embedded/59948>\
**Category:** Get Help\
**Created:** [March 23, 2021, 5:58pm UTC](https://community.auth0.com/t/auth0-react-embedded/59948 "2021-03-23T17:58:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cgarrovillo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/cgarrovillo/32/28336_2.png) [@cgarrovillo](https://community.auth0.com/u/cgarrovillo)\
**Post date:** [March 23, 2021, 5:58pm UTC](https://community.auth0.com/t/auth0-react-embedded/59948/1 "2021-03-23T17:58:50Z")

</div>

Please include the following information in your post:

- **Which SDK this is regarding:** e.g. auth0-react
- **SDK Version:** e.g. latest
- **Platform Version:** e.g. Node 12.19.0
- **Code Snippets/Error Messages/Supporting Details/Screenshots:**

Been scouring the documentation all over for this.  
I can see on Lock’s homepage there is a way to embed an auth0 login in the same domain: [https://auth0.com/lock](https://auth0.com/lock) but even the docs itself only has 2 cases now: [https://auth0.com/docs/libraries/lock/lock-authentication-modes](https://auth0.com/docs/libraries/lock/lock-authentication-modes)

I know Auth0-React isn’t using Lock, but is there a way to do an embedded login using Auth0-React?  
This seems like a use-case that I and many others are looking for, but “solutions” I found are either too outdated or just never replied ever again.

---

<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:** [March 24, 2021, 3:17pm UTC](https://community.auth0.com/t/auth0-react-embedded/59948/3 "2021-03-24T15:17:38Z")

</div>

Hi @cgarrovillo,

Auth0-React isn’t built for embedded login forms.

You will need to use Lock or Auth0.js depending on if you want to embed our widget our build your own UI, respectively.

Also an obligatory disclaimer that you have likely already seen if you have done some research: _we don’t recommend embedded login_. You lose out on a lot of features and increase your attack surface by embedding the login form.

Hope that helps,  
Dan

---

<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:** [April 8, 2021, 3:18pm UTC](https://community.auth0.com/t/auth0-react-embedded/59948/4 "2021-04-08T15:18:34Z")

</div>

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