Reputation: 702
How can I make a call to a Cloud Function from and android app such that the server knows that the calling app is an authenticated user?
Upvotes: 0
Views: 398
Reputation: 317322
If you're talking about an HTTPS type function, you can have the client pass an authentication token in the request to identify the end user that's already been authenticated by Firebase Authentication. The function can then use the admin SDK to validate that user and take actions based on their request.
You can see sample code from the Firebase team here and here.
Upvotes: 1