Multiple page API but wanting to call API from browser


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!

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? They will demonstrate how to create an application with the respective SDK.

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.


Why is authentication lost after refreshing my single page application? This article did help in my case.

1 Like

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