How can I implement device level rate limits for Firebase Phone Auth? (something like no more than 5 SMS requests per hour for a mobile device)
Firebase Phone Auth mobile docs say:
To use phone number authentication, Firebase must be able to verify that phone number sign-in requests are coming from your app.
I have implemented this via Play Integrity API attestation, which should ensure that requests are coming from authorized apps. However, I would like to implement an additional mechanism to limit the number of phone auth SMS requests that can be generated from the same device running the app.
How can I implement device level rate limits for phone auth on mobile?