# Multiple page API but wanting to call API from browser

**URL:** <https://community.auth0.com/t/multiple-page-api-but-wanting-to-call-api-from-browser/59774>\
**Category:** Get Help\
**Tags:** js\
**Created:** [March 19, 2021, 11:25pm UTC](https://community.auth0.com/t/multiple-page-api-but-wanting-to-call-api-from-browser/59774 "2021-03-19T23:25:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hector.vazquez](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/hector.vazquez/32/28277_2.png) [@hector.vazquez](https://community.auth0.com/u/hector.vazquez)\
**Post date:** [March 19, 2021, 11:25pm UTC](https://community.auth0.com/t/multiple-page-api-but-wanting-to-call-api-from-browser/59774/1 "2021-03-19T23:25:46Z")

</div>

Hello,

Still new to Auth0 and I have a question. I’m in the process to create an app that will have a handful of pages; these pages will make calls to a REST API. The SPA JS SDK seems to request authentication for every page. On the other hand, I don’t want to have a client id/secret for each user; what’s the best way to approach this situation? Thank you!

---

<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 22, 2021, 2:14pm UTC](https://community.auth0.com/t/multiple-page-api-but-wanting-to-call-api-from-browser/59774/3 "2021-03-22T14:14:39Z")

</div>

Hi @hector.vazquez,

Welcome to the Community!

The SDK shouldn’t be authenticating on each page. Are you sure you have set things up correctly? Have you tried our [quickstarts](https://auth0.com/docs/quickstarts/)? They will demonstrate how to create an application with the respective SDK.

---

<div class="post-metadata">

**Author:** ![hector.vazquez](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/hector.vazquez/32/28277_2.png) [@hector.vazquez](https://community.auth0.com/u/hector.vazquez)\
**Post date:** [March 24, 2021, 11:33pm UTC](https://community.auth0.com/t/multiple-page-api-but-wanting-to-call-api-from-browser/59774/4 "2021-03-24T23:33:53Z")

</div>

I thank you for getting back to me. OK; for now it’s good to be reassured that’s not normal behavior. I will triple check but I haven’t found any issue in my previous passes. Let me do it once again.

Thanks,  
Hector

---

<div class="post-metadata">

**Author:** ![hector.vazquez](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/hector.vazquez/32/28277_2.png) [@hector.vazquez](https://community.auth0.com/u/hector.vazquez)\
**Post date:** [March 25, 2021, 4:06am UTC](https://community.auth0.com/t/multiple-page-api-but-wanting-to-call-api-from-browser/59774/5 "2021-03-25T04:06:55Z")

</div>

[Why is authentication lost after refreshing my single page application?](https://community.auth0.com/t/why-is-authentication-lost-after-refreshing-my-single-page-application/56276) This article did help in my case.

---

<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 9, 2021, 4:06am UTC](https://community.auth0.com/t/multiple-page-api-but-wanting-to-call-api-from-browser/59774/6 "2021-04-09T04:06:57Z")

</div>

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