# How to logout out of a React web app without using the React SDK?

**URL:** <https://community.auth0.com/t/how-to-logout-out-of-a-react-web-app-without-using-the-react-sdk/103697>\
**Category:** Get Help\
**Tags:** classic-universal-login-experience, login-experience\
**Created:** [March 29, 2023, 11:25pm UTC](https://community.auth0.com/t/how-to-logout-out-of-a-react-web-app-without-using-the-react-sdk/103697 "2023-03-29T23:25:09Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![alex.brett](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/alex.brett/32/60157_2.png) [@alex.brett](https://community.auth0.com/u/alex.brett)\
**Post date:** [November 18, 2024, 11:34pm UTC](https://community.auth0.com/t/how-to-logout-out-of-a-react-web-app-without-using-the-react-sdk/103697/2 "2024-11-18T23:34:32Z")

</div>

Hello @zprangon! Thanks for reaching out.

I managed to find a few other posts regarding this issue:

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

> [@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 …

> [@"You forgot to wrap your component in \<Auth0Provider\>" only in built application](https://community.auth0.com/t/you-forgot-to-wrap-your-component-in-auth0provider-only-in-built-application/120322/3):
>
> 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.

Please let me know if these help!

Best,  
Alex

---

_[View the full topic](https://community.auth0.com/t/how-to-logout-out-of-a-react-web-app-without-using-the-react-sdk/103697)._
