# Custom credential and user storage system

**URL:** <https://forum.heroiclabs.com/t/custom-credential-and-user-storage-system/4235>\
**Category:** Runtime Framework\
**Tags:** server-framework, typescript\
**Created:** [August 14, 2023, 1:41pm UTC](https://forum.heroiclabs.com/t/custom-credential-and-user-storage-system/4235 "2023-08-14T13:41:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jon-Rey](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/jon-rey/32/1766_2.png) [@Jon-Rey](https://forum.heroiclabs.com/u/Jon-Rey)\
**Post date:** [August 14, 2023, 1:41pm UTC](https://forum.heroiclabs.com/t/custom-credential-and-user-storage-system/4235/1 "2023-08-14T13:41:52Z")

</div>

I have spent some time evaluating Nakama for use on a project that me and a small team of devs have built for research. Currently we are using modded minecraft to accomplish our goals with it’s server client setup using a docker container for our server. We’re looking to possibly transition to a Unity Client -Docker Server setup which Nakama can help accomplish. I would just want to know how possible it would be to swap the credential and user storage system on the Nakama server side while retaining all of it’s compatibility and usability with the unity tools.

---

<div class="post-metadata">

**Author:** ![ftkg](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/ftkg/32/1180_2.png) [@ftkg](https://forum.heroiclabs.com/u/ftkg)\
**Post date:** [August 14, 2023, 10:41pm UTC](https://forum.heroiclabs.com/t/custom-credential-and-user-storage-system/4235/2 "2023-08-14T22:41:31Z")

</div>

Hello @Jon-Rey, can you clarify what you meant with

> swap the credential and user storage system

?

---

<div class="post-metadata">

**Author:** ![Jon-Rey](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/jon-rey/32/1766_2.png) [@Jon-Rey](https://forum.heroiclabs.com/u/Jon-Rey)\
**Post date:** [August 17, 2023, 2:42am UTC](https://forum.heroiclabs.com/t/custom-credential-and-user-storage-system/4235/3 "2023-08-17T02:42:45Z")

</div>

Yeah of course! Apologies for being unclear initially.

In the docker image for Nakama it requires the cockroachdb dependency. I was wondering how doable it would be to swap over to another db that would be preferred for use with our team.

As for the credential system I’m not 100% sure but my co-worker was curious about a custom credential system that would make users login and be tied to profiles and such. I don’t know what he meant by “custom  
credential system” but i assume it would be probably reusing some kind of frontend we already have to communicate and login to the game via api through Nakama.

If you need more clarification I will expand more as needed!

---

<div class="post-metadata">

**Author:** ![sesposito](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/sesposito/32/2594_2.png) [@sesposito](https://forum.heroiclabs.com/u/sesposito)\
**Post date:** [August 17, 2023, 1:43pm UTC](https://forum.heroiclabs.com/t/custom-credential-and-user-storage-system/4235/4 "2023-08-17T13:43:39Z")

</div>

Hello @Jon-Rey,

Nakama is compatible with Postgres and any Postgres-compatible database. There’s even a [docker-compose to spin up Nakama with Postgres](https://github.com/heroiclabs/nakama/blob/master/docker-compose-postgres.yml).

If by “credential system” you mean authentication provider, Nakama supports linking user accounts to external providers or custom identifiers, please see our [authentication](https://heroiclabs.com/docs/nakama/concepts/authentication/) section in the docs.

Hope this helps.

---

<div class="post-metadata">

**Author:** ![Jon-Rey](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/jon-rey/32/1766_2.png) [@Jon-Rey](https://forum.heroiclabs.com/u/Jon-Rey)\
**Post date:** [August 17, 2023, 11:15pm UTC](https://forum.heroiclabs.com/t/custom-credential-and-user-storage-system/4235/5 "2023-08-17T23:15:39Z")

</div>

Perfect, That’s just what I was looking for. Thanks for your help!
