Auth0 Actions uses modern JavaScript’s promise-based programming model, a basis for asynchronous functions in Actions.
What can you do with Actions?
What an Action can do is determined by where it is executed within the Auth0 runtime environment.Signup & Login: When a user is added to a database or passwordless connection.
Signup & Login: When a user is added to a database or passwordless connection.
Trigger | Description |
---|---|
pre-user-registration | Triggers before a user is created. Does not run for social connections. |
post-user-registration | Triggers asynchronously after a user is created. Does not run for social connections. |
post-login | Triggers after a user is authenticated but token hasn’t issued. |
MFA Notifications: When using SMS as a factor for Multi-factor Authentication (MFA) or to configure a custom provider.
MFA Notifications: When using SMS as a factor for Multi-factor Authentication (MFA) or to configure a custom provider.
Trigger | Description |
---|---|
send-phone-message | Triggers when using a custom provider to send the messages for the enrollment and the challenge process. Does not run social connection. |
Password reset: When a password reset request is initiated.
Password reset: When a password reset request is initiated.
Trigger | Description |
---|---|
post-change-password | Triggers after a password is changed. Does not run for Social connections. |
password-reset-post-challenge | Triggers after the first challenge is completed and before the password is reset. |
Machine to Machine: When an application, instead of a user, is authenticated and authorized to use your APIs.
Machine to Machine: When an application, instead of a user, is authenticated and authorized to use your APIs.
Key benefits of Actions
Improved developer experience
- When editing an Action within the , you will have access to rich type information and inline documentation about what is possible within each trigger, which makes it easy to discover what capabilities each Trigger supports.
- An Action can be edited and tested without affecting the version that is currently serving production traffic.
- If an issue is found within an Action, it can be rolled back to a previous version.
Access to npm packages
Nearly all publicnpm
packages are available to be used within Actions.
Observability
When Actions are executed, Auth0 will capture key metrics about them and link them to Auth0 Logs.Multiple Actions on every trigger
Every Action trigger supports multiple independent Actions.Get started
- Write your first Action!
- See the current limitations of Actions.