Skip to content Skip to sidebar Skip to footer

When Creating A Server For Generating Firebase CustomToken Am I Using Only Service Accounts Or Somehow Behind The Scene Also User Credentials?

We are moving soon this project to production. 1 - Our Mobile App will create money transfer by posting it to our internal microserve. Such post request will return a CustomToken g

Solution 1:

From what I can see the way you currently mint the custom is purely based on the service account, and your implicit knowledge of the UID of the user (the UID you copied from the console). There are no other user credentials involved in the code you shared, nor in other parts of the flow as far as I can see.

I am curious to understand how you are protecting this token generation though: what prevents any other web client from calling your listenSingleTransferWithToken method or otherwise reading the token from the database?


Post a Comment for "When Creating A Server For Generating Firebase CustomToken Am I Using Only Service Accounts Or Somehow Behind The Scene Also User Credentials?"