# "You forgot to wrap your component in \<Auth0Provider\>" only in built application

**URL:** <https://community.auth0.com/t/you-forgot-to-wrap-your-component-in-auth0provider-only-in-built-application/120322>\
**Category:** Get Help\
**Tags:** configuration, application\
**Created:** [November 6, 2023, 3:30pm UTC](https://community.auth0.com/t/you-forgot-to-wrap-your-component-in-auth0provider-only-in-built-application/120322 "2023-11-06T15:30:56Z")\
**Posts on this page:** 1\
**Showing post:** 3

<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:** [November 13, 2023, 3:31pm UTC](https://community.auth0.com/t/you-forgot-to-wrap-your-component-in-auth0provider-only-in-built-application/120322/3 "2023-11-13T15:31:53Z")

</div>

Hi @mschersten,

Welcome to the Auth0 Community!

Here’s a couple of threads that provide additional context on the error you’re seeing. If you don’t find an answer here, can you please share some code snippets of your implementation. Don’t include any sensitive data.

> [@Auth0, React and Single-Spa - \[You forgot to wrap your component in \<Auth0Provider\>\]](https://community.auth0.com/t/auth0-react-and-single-spa-you-forgot-to-wrap-your-component-in-auth0provider/77731):
>
> I am creating an app using Single-Spa, React and Auth0. The auth0/auth0-react documentation specifies to wrap the app in the following way: \<Auth0Provider domain="YOUR\_AUTH0\_DOMAIN" clientId="YOUR\_AUTH0\_CLIENT\_ID" redirectUri={window.location.origin} \> \<App /\> \</Auth0Provider\> However with Single-Spa the components are mounted and un-mounted based on the url path, as specified by the root-config’s index.ejs file (there is no root component). With Single-Spa I do not have …

> <https://stackoverflow.com/questions/70760724/how-to-logout-with-auth0-sdk-you-forgot-to-wrap-your-component-in-auth0provid>

---

_[View the full topic](https://community.auth0.com/t/you-forgot-to-wrap-your-component-in-auth0provider-only-in-built-application/120322)._
