# Auth0 secured API and separate NativeApp and SPA App

**URL:** <https://community.auth0.com/t/auth0-secured-api-and-separate-nativeapp-and-spa-app/22030>\
**Category:** Get Help\
**Tags:** api, auth0, native\
**Created:** [March 3, 2019, 9:16am UTC](https://community.auth0.com/t/auth0-secured-api-and-separate-nativeapp-and-spa-app/22030 "2019-03-03T09:16:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![b33rdy](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/b33rdy/32/11477_2.png) [@b33rdy](https://community.auth0.com/u/b33rdy)\
**Post date:** [March 3, 2019, 9:16am UTC](https://community.auth0.com/t/auth0-secured-api-and-separate-nativeapp-and-spa-app/22030/1 "2019-03-03T09:16:48Z")

</div>

Hi,

We are developing an API platform, that has a separate NativeApp and SPA App.

In Auth0, what’s the best way to model the apps? Is it to one Application per-type (NativeApp, SPA and API) in Auth0 and give the clients access to the API application somehow, or create one app?

In IdentityServer4, we would define them as separate Clients with defined access to specific scopes.

What’s the equivalent modelling in Auth0?

Thanks,  
Kieron

---

<div class="post-metadata">

**Author:** ![markd](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/markd/32/38919_2.png) [@markd](https://community.auth0.com/u/markd)\
**Post date:** [March 3, 2019, 1:29pm UTC](https://community.auth0.com/t/auth0-secured-api-and-separate-nativeapp-and-spa-app/22030/2 "2019-03-03T13:29:24Z")

</div>

Hello @b33rdy,

I believe the best practice is to create one Auth0 Application each for your native app and SPA. This is the model we follow where I work. This has a number of advantages including per-app configuration and per-app logging.

Then for your API(s), you can define what scopes each [Application](https://auth0.com/docs/architecture-scenarios/spa-api/part-3) is allowed, and you can extend that model (using the [Authorization Extension](https://auth0.com/docs/extensions/authorization-extension/v2)) to control scopes at the user level.

---

<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:** [August 30, 2019, 9:27am UTC](https://community.auth0.com/t/auth0-secured-api-and-separate-nativeapp-and-spa-app/22030/3 "2019-08-30T09:27:29Z")

</div>

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