Say, I have an API /api/send-otp
which takes phone-number as input and sends otp to user's phone-number. Now, this API can not be authenticated because auth token is generated after successful /api/confirm-otp
call.
How to make sure that the /api/send-otp
call is coming only from the authorized android app and not from any script/client.
PS: I can't embed any hashing logic in apk as it can be reverse-engineered. Is something provided by Google (safety-net)? Any relevant documentation/implementation link would be helpful.