# Using Native App for a Web App

**URL:** <https://community.auth0.com/t/using-native-app-for-a-web-app/96733>\
**Category:** Get Help\
**Tags:** configuration, application\
**Created:** [December 19, 2022, 3:15pm UTC](https://community.auth0.com/t/using-native-app-for-a-web-app/96733 "2022-12-19T15:15:58Z")\
**Posts on this page:** 3\
**Page:** 1

<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:** [December 19, 2022, 3:15pm UTC](https://community.auth0.com/t/using-native-app-for-a-web-app/96733/1 "2022-12-19T15:15:59Z")

</div>

Hello,

I am working on building single sign on for both a web app (ASP .NET) and a mobile app (Xamarin). Is there any reason that I cannot / should not share one Auth0 Native app between the two? I have been able to authenticate users for both the web app and the mobile app using a single Native app, but I want to make sure that is okay.

As far as I can tell the only difference between them is the use of PKCE which to me seems to be fine for both web apps and native mobile apps.

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [December 19, 2022, 11:19pm UTC](https://community.auth0.com/t/using-native-app-for-a-web-app/96733/3 "2022-12-19T23:19:06Z")

</div>

Hey there @dfleming !

> [@dfleming](#):
>
> Is there any reason that I cannot / should not share one Auth0 Native app between the two? I have been able to authenticate users for both the web app and the mobile app using a single Native app, but I want to make sure that is okay.

I believe this should be OK as long as they are the same logical app - You could also achieve this with 2 separate applications sharing the same connections as well. Typically, the major difference between a native app and web app is the fact that native apps are public clients where as web apps can be confidential - You definitely want to make sure credentials aren’t exposed in the native app. Some more on public vs. confidential clients here:

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

---

<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:** [January 25, 2023, 1:01am UTC](https://community.auth0.com/t/using-native-app-for-a-web-app/96733/4 "2023-01-25T01:01:17Z")

</div>

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