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
Hi @jcsix
We recommend subscriberId to be unique userId that you use in your system
auth0 generate unique userId during signup?
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.
The repo is here: https://github.com/novuhq/examples/tree/main/vue-nextjs-trigger-inapp-notifications
GitHub
examples/vue-nextjs-trigger-inapp-notifications at main · novuhq/ex...
Contribute to novuhq/examples development by creating an account on GitHub.
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!
Thanks for your kind words @jcsix