# Difference between Single Page Application and Regular Web Application for Next.js

**URL:** <https://community.auth0.com/t/difference-between-single-page-application-and-regular-web-application-for-next-js/127239>\
**Category:** Get Help\
**Tags:** configuration, application\
**Created:** [February 13, 2024, 8:12pm UTC](https://community.auth0.com/t/difference-between-single-page-application-and-regular-web-application-for-next-js/127239 "2024-02-13T20:12:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajwootto](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ajwootto/32/48968_2.png) [@ajwootto](https://community.auth0.com/u/ajwootto)\
**Post date:** [February 13, 2024, 8:12pm UTC](https://community.auth0.com/t/difference-between-single-page-application-and-regular-web-application-for-next-js/127239/1 "2024-02-13T20:12:27Z")

</div>

I’ve recently been switching from the Auth0 React SDK to the Auth0 Next SDK. The Next SDK’s docs state that it should be used with an application that is configured to be a “Regular Web Application”, while the React SDK was setup to use a “Single Page Application”

I’ve been testing the Next SDK against the same application and it seems to work. What is the difference with a “Regular Web Application” and would the Next SDK work when targeting that application? Is it just a matter of what the default configuration settings are set to on creation of the application?

---

<div class="post-metadata">

**Author:** ![fawzytatdev](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/fawzytatdev/32/59371_2.png) [@fawzytatdev](https://community.auth0.com/u/fawzytatdev)\
**Post date:** [August 23, 2024, 1:57am UTC](https://community.auth0.com/t/difference-between-single-page-application-and-regular-web-application-for-next-js/127239/2 "2024-08-23T01:57:52Z")

</div>

This is actually a very important and relatable question. any answer??

---

<div class="post-metadata">

**Author:** ![abulhasanlakhani](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/abulhasanlakhani/32/72803_2.png) [@abulhasanlakhani](https://community.auth0.com/u/abulhasanlakhani)\
**Post date:** [February 11, 2025, 8:04am UTC](https://community.auth0.com/t/difference-between-single-page-application-and-regular-web-application-for-next-js/127239/3 "2025-02-11T08:04:21Z")

</div>

Hmm no answer for this yet. So it seems community is even not clear. I have the same confusion.

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [February 11, 2025, 1:07pm UTC](https://community.auth0.com/t/difference-between-single-page-application-and-regular-web-application-for-next-js/127239/4 "2025-02-11T13:07:22Z")

</div>

Hi team,

Sharing the answer here for the rest of the community. The reason behind setting Next.js as an RWA is the server-side rendering, which allows you to safely store client secrets, so it can be considered a private application. You can set up next.js with an SPA, but it’s not recommended.

Below, you can find a few links explaining which application and flow to choose during the planning phase.

> **[Which OAuth 2.0 Flow Should I Use?](https://auth0.com/docs/get-started/authentication-and-authorization-flow/which-oauth-2-0-flow-should-i-use)**
>
> Learn how to identify the proper OAuth 2.0 flow for your use case.

> **[Applications in Auth0](https://auth0.com/docs/get-started/applications)**
>
> Learn the basics of registering and configuring your applications in Auth0.

> **[Confidential and Public Applications](https://auth0.com/docs/get-started/applications/confidential-and-public-applications)**
>
> Describes the difference between confidential and public application types.

Thanks  
Dawid

---

<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:** [February 25, 2025, 1:07pm UTC](https://community.auth0.com/t/difference-between-single-page-application-and-regular-web-application-for-next-js/127239/5 "2025-02-25T13:07:59Z")

</div>

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