How can I track failed login attempts (is there a variable exposed)?

I need to implement a Corporate login rule to lock an account based on the number of failed successive login attempts. I assume I will need a custom rule for this, but is there a variable available that would track this number?

Hi @phil.fitzgerald thanks for your question!

I might need to hear a bit more context surrounding how you’d like to block an account. If it’s just by consecutive failed login attempts have you considered our built in Brute-Force Protection? Here’s a bit more information on the topic as well.

In terms of variables you’d have access to within a rule, you should have access to the logins under ‘context.stats.loginsCount’ though I’d recommend utilizing some console.logs while building out your rule to confirm.

Best Regards,