N
Neon2w ago
correct-apricot

Neon Auth, user_sync on a different database that isn't default neondb

I am trying to set up Neon-Auth with my database rather than using the default neondb. But all the created users are going to the neondb database, is there anyway to change that so that I can have them in the same database?
3 Replies
ratty-blush
ratty-blush2w ago
You need to use the Neon API to accomplish this, it's not available in the console. Using the endpoint you can specify the database name https://api-docs.neon.tech/reference/createneonauthintegration
Neon
Create Neon Auth integration
Creates a project on a third-party authentication provider's platform for use with Neon Auth. Use this endpoint if the frontend integration flow can't be used.
correct-apricot
correct-apricotOP2w ago
So it should stay strictly via API calls? For example if I create a user on Stack Auth directly it's only propagated back into the neondb table not my database. The same goes when I try to sign in with an OAuth provider. Oh I think I realised you meant just the initial integration call. Thanks!
ratty-blush
ratty-blush2w ago
Yes that's exactly it, sorry I wasn't very clear!

Did you find this page helpful?