Fraud SDK Node.js 2.0.0

Breaking changes

  • Update signature of LoginEvent and RegistrationEvent to accept a single configuration object instead of individual parameters

Enhancements

  • Add support for account update events
  • Add support for password update events
  • Add optional session, user, and authentication fields for login events
  • Add optional authentication field for registration events
  • Add displayName, description, externalUrls, and pictureUrls fields to the User interface
  • Add the score and eventId fields on successful responses from the Validate method
  • Add optional requestMetadata parameter for collect and validate methods to allow overriding the initial request's metadata