# React SPA with ASP Core

**URL:** <https://community.auth0.com/t/react-spa-with-asp-core/127427>\
**Category:** Get Help\
**Tags:** login-experience, new-universal-login-experience\
**Created:** [February 15, 2024, 2:23pm UTC](https://community.auth0.com/t/react-spa-with-asp-core/127427 "2024-02-15T14:23:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chris54](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@chris54](https://community.auth0.com/u/chris54)\
**Post date:** [February 15, 2024, 2:23pm UTC](https://community.auth0.com/t/react-spa-with-asp-core/127427/1 "2024-02-15T14:23:45Z")

</div>

I have template from ASP Core that has a React SPA front end and uses ASP for the API.  
Would I place the auth in the React Front end? Does Auth0 provide anything to sync the authentication with the backend or do I need to sort that out manually?  
Also is it recommended that when new users register through auth0 you create matching user records in the app or should auth0 be the single source of data?

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [February 26, 2024, 11:31pm UTC](https://community.auth0.com/t/react-spa-with-asp-core/127427/3 "2024-02-26T23:31:05Z")

</div>

Hey @chris54 welcome to the community!

> [@chris54](#):
>
> Would I place the auth in the React Front end? Does Auth0 provide anything to sync the authentication with the backend or do I need to sort that out manually?

Auth will occur in your React SPA and once it does your frontend will use an access token against your API. I definitely recommend taking a look at our [developer hub](https://developer.auth0.com/resources/code-samples/full-stack) where you can get a sample up and running fairly easily.

> [@chris54](#):
>
> Also is it recommended that when new users register through auth0 you create matching user records in the app or should auth0 be the single source of data?

Both are valid approaches:  
[https://auth0.com/docs/secure/security-guidance/data-security/user-data-storage](https://auth0.com/docs/secure/security-guidance/data-security/user-data-storage)

---

<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:** [March 11, 2024, 11:31pm UTC](https://community.auth0.com/t/react-spa-with-asp-core/127427/4 "2024-03-11T23:31:43Z")

</div>

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