Skip to main content
Every AuthFlame check returns a summary object that condenses the underlying signals into three fields you can act on directly: risk_score, risk_level, and action.

The summary object

  • risk_score: an integer from 0 (safe) to 100 (highest risk).
  • risk_level: a coarse bucket derived from the score, one of low, medium, or high.
  • action: the recommended enforcement decision, one of ALLOW or BLOCK.

Risk levels

Exact thresholds can shift as AuthFlame updates its models. Prefer branching on summary.action unless you need fine-grained control.
summary.action is AuthFlame’s opinion about what your signup flow should do.
  • ALLOW: proceed with account creation.
  • BLOCK: reject the signup. Show a generic error so you don’t leak which signal tripped.

Rolling your own thresholds

If you need custom behavior (for example, blocking anything above 85 on a free-trial signup) branch on summary.risk_score directly and ignore action. The score is stable across time for the same input signals, so it’s safe to use in your own rules engine.