
Triggers
Pre-user Registration
Thepre-user-registration
triggers runs when a user attempts to register through a Database or Passwordless connection. This trigger can be used to add metadata to the user profile before it is created or to deny a registration with custom logic.
Vous ne pouvez pas présentement utiliser les Actons
pre-user-registration
pour ajouter des métadonnées aux utilisateurs sans mot de passe.References
- Event object: Provides contextual information about the request to register a new user.
- API object: Provides methods for changing the behavior of the flow.
Common use cases
Deny registration by location
A pre-user registration Action can be used to prevent a user from signing up.Set metadata in the user profile
A pre-user registration Action can be used to add metadata to the user profile before it is created.Vous ne pouvez pas présentement utiliser les Actons
pre-user-registration
pour ajouter des métadonnées aux utilisateurs sans mot de passe.Store a user ID from another system in the user profile
A pre-user registration Action can be used to store a user ID from another system in the user profile.Pour utiliser une bibliothèque
npm
comme axios
, vous devez ajouter la bibliothèque à l’Action en tant que dépendance. Pour en savoir plus, lisez la section « Ajouter une dépendance » dans Rédigez votre première action.Deny access to specific JA3/JA4 fingerprints
Theevent.security_context
object contains the JA3/JA4 fingerprint values for the current transaction.