Integrate members from external database

Hi, we already have an app up and running with users and we would like to integrate Ghost into our app. The only integration we need is that users from our existing app can login to Ghost without having to sign up again. We are using Supabase for the backend which uses postgres under the hood, and we have full control over the database for integration.

Is this possible? If so, what is the best way to achieve this? I can’t seem to find any documentation about it.

You can use Ghost Admin API to sync member data, you can refer to the following doc for more details:

Thanks, so during the member creation on the existing app, I send an API request to create a member on Ghost as well. Is that correct?

Yes, right. And don’t forget to disable signup function on Ghost via Ghost settings > Access

1 Like

Will do, thanks a lot!

I’m not sure what kind of app this is, but be careful not to put the admin api key (required for creating members this way) on the client. You need the server or a cloud function to do the member creating.

Yes this will be done on the server side. No amateur mistakes here! :)

1 Like