# Confusion about SPA and API, when user signs up

**URL:** <https://community.auth0.com/t/confusion-about-spa-and-api-when-user-signs-up/103250>\
**Category:** Get Help\
**Tags:** account-linking, user-management\
**Created:** [March 24, 2023, 1:45pm UTC](https://community.auth0.com/t/confusion-about-spa-and-api-when-user-signs-up/103250 "2023-03-24T13:45:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mahood73](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mahood73/32/12732_2.png) [@mahood73](https://community.auth0.com/u/mahood73)\
**Post date:** [March 24, 2023, 1:45pm UTC](https://community.auth0.com/t/confusion-about-spa-and-api-when-user-signs-up/103250/1 "2023-03-24T13:45:15Z")

</div>

I have created a very simple API, and it authenticates by means of JWT. At the moment, the only consumer of that API is a React SPA, which uses Auth0 for user signup and authentication.  
Everything is working fine: when a user isn’t logged in, they don’t have access, and when they are, they do. I’m still developing it, so it’s not live yet.

My problem is around user sign up.

When a new user signs up, they’re immediately prompted to allow access to their account for the API. Given that I have created both, I don’t want that extra friction and a slightly alarming message.

I feel I must have set something up wrong - but I don’t know what, based on the docs. I have enabled Roles, although I don’t really need them yet. Might that be the problem?

I want a user to automatically be able to use the API when they sign up to the SPA, without needing to grant extra permissions, and I can’t figure out how.

Many thanks,

Mark

---

<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:** [March 29, 2023, 7:24pm UTC](https://community.auth0.com/t/confusion-about-spa-and-api-when-user-signs-up/103250/3 "2023-03-29T19:24:41Z")

</div>

Hi @mahood73,

The consent prompt can be skipped for first party applications (your app), _unless you are developing on localhost_. In this case, you will have to deploy a workaround for the prompt to be skipped on localhost, otherwise wait until you deploy the app.

More info: [User Consent and Third-Party Applications](https://auth0.com/docs/get-started/applications/confidential-and-public-applications/user-consent-and-third-party-applications#skip-consent-for-first-party-applications)

---

<div class="post-metadata">

**Author:** ![mahood73](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mahood73/32/12732_2.png) [@mahood73](https://community.auth0.com/u/mahood73)\
**Post date:** [April 10, 2023, 12:51pm UTC](https://community.auth0.com/t/confusion-about-spa-and-api-when-user-signs-up/103250/4 "2023-04-10T12:51:29Z")

</div>

Sorry, I missed your reply - this is indeed happening on localhost, so that explains it!

---

<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:** [April 10, 2023, 12:53pm UTC](https://community.auth0.com/t/confusion-about-spa-and-api-when-user-signs-up/103250/5 "2023-04-10T12:53:20Z")

</div>

Thanks for following up! Glad it was a simple fix.

---

<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:** [April 24, 2023, 12:53pm UTC](https://community.auth0.com/t/confusion-about-spa-and-api-when-user-signs-up/103250/6 "2023-04-24T12:53:43Z")

</div>

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