how to limit oauth login attemps in laravel?

152 Views Asked by At

In several cases, I limit login attempts in laravel project but I can't find any solution in oauth login. Specifically, my question is how do I limit login attempts using this api "/v1/oauth/token" or any custom method.

1

There are 1 best solutions below

2
Vlăduț Teodor On

Rate limiting from Laravel it's the best way to solve your issue. https://laravel.com/docs/8.x/rate-limiting