Auth0 Hidden assets for Companies (and developers)
Auth0 Triggers are amazing feature which can help developers to save lot of time.
For many hackathon, Auth0 was our saviour when it comes to integration Authentication. There are lot of articles around how to integrate Auth0 in your application; but that is just cherry on cake. Auth0 is much more than this, and why should both startups / developers at startups should read this article.
Post Signup
The Signup is one of the major milestone as a company. Once a user signs up we will push their email address ( user.email) to the CRM system / Marketing Emails system. These are important tasks because we will have to see whether the user has purchased or not, and keep track of number of users signed up daily and so on.
This thing can be achieved using Auth0 Flow.
First Select the Actions
Create Custom Action or install from selected
Select the node version (12 or 16)
Write the code accordingly.
Few use cases post signup are
- Push Signup Email to CRM System
- Post Notification to Communication Channels
- Lead Enrichment
Post Sign IN
It is very common to build lot of analytics data based on the user sign-in. Daily metrics tables are built into our system. We can daily configure the Webhooks which we can hit and build analytics in our end based on our need.
One of the library collection which Auth0 displayed attracted me a lot Amazon SNS(pub-sub); When configured properly Auth0 can easily push SMS for multi-factor authentication.
Post Password Change
Generally when the passwords are changed; we will be alerting the email to the end-user that password has been changed.
There are two ways to do this; we can use Coded triggers or Notification Emails of Auth0.
Why I Respect these triggers
Faster Development
At first these triggers looks very easy to integrate. But when you are in fast-pace startup building these thing at early stage can be off-loaded easily. Once my friend told he worked on Welcome Email integration for a whole day. 1 day is obviously very costly for many; It is better to use the system's built in capabilities.
Easier Migration
Think Amazon SNS has changed the API related details; start-ups can't sit and debug on these. Every day pushing features will be top priority at Startup than debugging issue from beginning. At such case, the Auth0 developers will take care of burden mostly as the library is maintained by them.