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