Do you guys use your main db as Ory Kratos’ db?
# ory-selfhosting
q
Do you guys use your main db as Ory Kratos’ db?
w
not really sure if i understand your question
q
Like currently I am using Ory Kratos and it has a separate db than my main db with all the other tables
w
yeah, we do it like this too, kratos has it’s own db, other apps have their own 🙂
q
I see, was wondering about creating the user in my main db after registration with Kratos, how do you guys handle that? I ended up doing something that is pretty hacky I would say (send POST request in the submit handler)
w
You mean the db user? In our case we decided to go with a managed offering and simply got the user in a batteries included model
q
What I mean is that when a user registers on my Next.js app it creates an entry in the
users
table in the Kratos db, but I also want to enter the user’s details in my main db, which also has a
users
table
w
aaah i see. I don’t think this is something we support out of the box, not do ourself. You would need something that would basically replicate the entries and put them in the second db i guess