# Is there an example of using "@auth0/auth0-react" with XState

**URL:** <https://community.auth0.com/t/is-there-an-example-of-using-auth0-auth0-react-with-xstate/182204>\
**Category:** Get Help\
**Tags:** configuration, application\
**Created:** [February 14, 2025, 11:33pm UTC](https://community.auth0.com/t/is-there-an-example-of-using-auth0-auth0-react-with-xstate/182204 "2025-02-14T23:33:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jackiegleason](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jackiegleason/32/8119_2.png) [@jackiegleason](https://community.auth0.com/u/jackiegleason)\
**Post date:** [February 14, 2025, 11:33pm UTC](https://community.auth0.com/t/is-there-an-example-of-using-auth0-auth0-react-with-xstate/182204/1 "2025-02-14T23:33:58Z")

</div>

I am trying to see if anyone has an example of the supported ways to use Auth0 SPA with XState? I have to really hack it to get it to work so it would be nice to see what the recommended approach is.

---

<div class="post-metadata">

**Author:** ![nik.baleca](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nik.baleca/32/68749_2.png) [@nik.baleca](https://community.auth0.com/u/nik.baleca)\
**Post date:** [February 14, 2025, 11:58pm UTC](https://community.auth0.com/t/is-there-an-example-of-using-auth0-auth0-react-with-xstate/182204/3 "2025-02-14T23:58:42Z")

</div>

Hi @jackiegleason

It appears that there is not an out-of-the-box solution or integration provided by Auth0 for XState. I can recommend you to take a look at this [community post](https://community.auth0.com/t/how-do-i-use-auth0provider-properties-in-xstate/166924) which might be helpful.

If you have any other questions, feel free to let me know.

Kind Regards,  
Nik

---

<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:** [February 28, 2025, 11:59pm UTC](https://community.auth0.com/t/is-there-an-example-of-using-auth0-auth0-react-with-xstate/182204/4 "2025-02-28T23:59:24Z")

</div>

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