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