N
Novu13mo ago
jcsix

Best way to handle SubscriberID and Auth0?

Hi all, big fan of the work and we're looking to use novu for our workplace in our internal systems We use Auth0, all our staff are in Auth0. As we want to send out specific notifications our on our platform depending on the role, We'll need to have the subscriberID stored in our users metadata. I'm just wondering what, would be the best way around this? We have our codebase all splitout on the backend into small components (Catalogue Component, Inventory Component, Manifest Component etc) and don't have a User Component as, we just use Auth 0. Do you think adding a custom flow into Auth0 login would be the best possible way to get this data?
5 Replies
Pawan Jain
Pawan Jain13mo ago
Hi @jcsix We recommend subscriberId to be unique userId that you use in your system auth0 generate unique userId during signup?
Prosper
Prosper13mo ago
Hey @jcsix, as someone that has used Auth0 heavily in the past, you can make a call to store the auth0 id directly on Novu from the callback after sign up. Here’s a demo app of me using Auth0 and Novu https://novu-notifications-vue3.vercel.app/
Novu Sample App
Learn how to add Notification and Authentication to Vue 3 apps easily.
Prosper
Prosper13mo ago
jcsix
jcsixOP13mo ago
Oh wow, thank you both for the super, super help ❤️ I really cannot thank the two of you enough 😄 We love Novu here, and super happy with the discord too!
Pawan Jain
Pawan Jain13mo ago
Thanks for your kind words @jcsix
Want results from more Discord servers?
Add your server