add user in mongodb database on nuxt
Hey, I'm currently trying to create a nuxt app.
The login is working but I don't know how I can add my user into my db when he create an account so I can modify and add data to him.
Can you help me please
19 Replies
Hi, you can try something similar

Hi @Nocteln,
Do you want to automatically add a user record in your local app DB whenever a user is created/registers an account in Kinde?
Yes
Thanks but when do I call the function?
On the page where u redirec user after auth.
Ok thx
Hey @Nocteln,
I would suggest using your webhooks to achieve this.
If you can let me know the name of your Kinde business, I can enable the webhooks feature for you
Hey, thank you
I think my business name is "habit tracker" or something like that
I already posted a request on the website to get access to it

Hi @Nocteln I have enabled webhooks on your account, please logout and back in again to get access to it.
Please find instructions here: https://kinde.com/docs/developer-tools/add-manage-webhooks/#add-and-manage-webhooks
Kinde Docs
Add and manage webhooks - Developer tools - Help center
Our developer tools provide everything you need to get started with Kinde.
I'm sorry but i dont have the webhooks option

could you confirm your kinde domain?
yes

I mean your kinde domain, what is displayed in the address bar?
oh ok
its nocteln.kinde.com
ok that is not all done for you
okay thank you
i cant use the webhook on localhost?
Yes you can, you would need to expose your application externally, https://kinde.com/docs/developer-tools/add-manage-webhooks/#testing-webhooks-locally
Kinde Docs
Add and manage webhooks - Developer tools - Help center
Our developer tools provide everything you need to get started with Kinde.
ok thx