K
Kinde3mo ago
Nocteln

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
Тапичь
Тапичь3mo ago
Hi, you can try something similar
No description
Oli - Kinde
Oli - Kinde3mo ago
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?
Nocteln
Nocteln3mo ago
Yes Thanks but when do I call the function?
Тапичь
Тапичь3mo ago
On the page where u redirec user after auth.
Nocteln
Nocteln3mo ago
Ok thx
Oli - Kinde
Oli - Kinde3mo ago
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
Nocteln
Nocteln3mo ago
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
Nocteln
Nocteln3mo ago
No description
Daniel_Kinde
Daniel_Kinde2mo ago
Hi @Nocteln I have enabled webhooks on your account, please logout and back in again to get access to it.
Daniel_Kinde
Daniel_Kinde2mo ago
Kinde Docs
Add and manage webhooks - Developer tools - Help center
Our developer tools provide everything you need to get started with Kinde.
Nocteln
Nocteln2mo ago
I'm sorry but i dont have the webhooks option
No description
Daniel_Kinde
Daniel_Kinde2mo ago
could you confirm your kinde domain?
Nocteln
Nocteln2mo ago
yes
No description
Daniel_Kinde
Daniel_Kinde2mo ago
I mean your kinde domain, what is displayed in the address bar?
Nocteln
Nocteln2mo ago
oh ok its nocteln.kinde.com
Daniel_Kinde
Daniel_Kinde2mo ago
ok that is not all done for you
Nocteln
Nocteln2mo ago
okay thank you i cant use the webhook on localhost?
Daniel_Kinde
Daniel_Kinde2mo ago
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.
Nocteln
Nocteln2mo ago
ok thx