# Setting up a SPA + API combo with React and .NET Core

**URL:** <https://community.auth0.com/t/setting-up-a-spa-api-combo-with-react-and-net-core/53098>\
**Category:** Get Help\
**Tags:** spa, jwt, api, cookie, auth0\
**Created:** [November 12, 2020, 2:49am UTC](https://community.auth0.com/t/setting-up-a-spa-api-combo-with-react-and-net-core/53098 "2020-11-12T02:49:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pdevito3](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/pdevito3/32/25556_2.png) [@pdevito3](https://community.auth0.com/u/pdevito3)\
**Post date:** [November 12, 2020, 2:49am UTC](https://community.auth0.com/t/setting-up-a-spa-api-combo-with-react-and-net-core/53098/1 "2020-11-12T02:49:35Z")

</div>

So I’m looking into Auth0 as the foundation for a few of my projects and I’m pretty sure I know how I want to set it up, but I’m having trouble finding resources on what to do for Auth0.

For context, I have a react app that is calling my .NET Core API, both of which should have auth built in and need to work together. I’m (pretty sure) that I should be using OAuth 2 authorization code grant using JWTs and refresh tokens stored in cookies, but I’m not finding any resources on how to set that up. The closest I’ve come is [this](https://auth0.com/docs/microsites/call-api/call-api-single-page-app), but it’s really high level. I can’t even tell which application type I should select or how to set it up. Some resources on setting up the react and .net sides would be nice too, but would just be a bonus at this point.

---

<div class="post-metadata">

**Author:** ![pdevito3](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/pdevito3/32/25556_2.png) [@pdevito3](https://community.auth0.com/u/pdevito3)\
**Post date:** [November 12, 2020, 2:55am UTC](https://community.auth0.com/t/setting-up-a-spa-api-combo-with-react-and-net-core/53098/2 "2020-11-12T02:55:24Z")

</div>

Of course I find [this](https://auth0.com/docs/architecture-scenarios/spa-api) right after I post. It does seem to answer a bit, but if anyone has any other insights or resources on the auth0, react, or net core side, that would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![t650](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/t650/32/55402_2.png) [@t650](https://community.auth0.com/u/t650)\
**Post date:** [March 5, 2024, 6:17pm UTC](https://community.auth0.com/t/setting-up-a-spa-api-combo-with-react-and-net-core/53098/3 "2024-03-05T18:17:19Z")

</div>

Unfortunately that guide involves authorising the SPA through the implicit flow which is ‘deprecated’.
