# DO I need to setup two seperate clients if I have a webapp and Native app, which share the same Database for accounts?

**URL:** <https://community.auth0.com/t/do-i-need-to-setup-two-seperate-clients-if-i-have-a-webapp-and-native-app-which-share-the-same-database-for-accounts/7279>\
**Category:** Get Help\
**Tags:** client-setup\
**Created:** [June 27, 2017, 8:09am UTC](https://community.auth0.com/t/do-i-need-to-setup-two-seperate-clients-if-i-have-a-webapp-and-native-app-which-share-the-same-database-for-accounts/7279 "2017-06-27T08:09:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![danny11](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/danny11/32/12778_2.png) [@danny11](https://community.auth0.com/u/danny11)\
**Post date:** [June 27, 2017, 8:09am UTC](https://community.auth0.com/t/do-i-need-to-setup-two-seperate-clients-if-i-have-a-webapp-and-native-app-which-share-the-same-database-for-accounts/7279/1 "2017-06-27T08:09:39Z")

</div>

We’re trying to create a unified account system for our web app and native app. How should we do this?

If we only need to setup one client in Photage that would be best!

---

<div class="post-metadata">

**Author:** ![Mark\_Redman](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mark_redman/32/6240_2.png) [@Mark\_Redman](https://community.auth0.com/u/Mark_Redman)\
**Post date:** [June 27, 2017, 2:10pm UTC](https://community.auth0.com/t/do-i-need-to-setup-two-seperate-clients-if-i-have-a-webapp-and-native-app-which-share-the-same-database-for-accounts/7279/2 "2017-06-27T14:10:12Z")

</div>

Each user is associated with one Client account, you should use the same Client/Database to represent the same user.

---

<div class="post-metadata">

**Author:** ![prashantT](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/prashantt/32/6002_2.png) [@prashantT](https://community.auth0.com/u/prashantT)\
**Post date:** [July 6, 2017, 11:09am UTC](https://community.auth0.com/t/do-i-need-to-setup-two-seperate-clients-if-i-have-a-webapp-and-native-app-which-share-the-same-database-for-accounts/7279/3 "2017-07-06T11:09:27Z")

</div>

Users are per connection - you can create multiple clients, all using the same database connection. For your setup, something along the following:

- 1 Database Connection (e.g. Username-Password-Authentication).

- WebApp Client → Using Username-Password-Authentication connection.

- Native app client → Using Username-Password-Authentication connection.

---

<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:** [March 2, 2018, 5:54am UTC](https://community.auth0.com/t/do-i-need-to-setup-two-seperate-clients-if-i-have-a-webapp-and-native-app-which-share-the-same-database-for-accounts/7279/4 "2018-03-02T05:54:59Z")

</div>


