Recently I am developing an app which connects to firebase and upload important documents to firebase storage.
There are users who will view uploaded documents, so I generated download URL after upload document and stored download url into firebase database so that the app will get download url and use it.
Btw, once generated download url, it is public so anyone can use the link to view the uploaded document on firebase storage.
So I decided to store private url of document into firebase database and then once valid user wants to view the document, the app will generate download url from private url and then use the link to show to the user.
And then right after viewing, I want to revoke download url of the document programmatically on the app.
I see I can manually revoke download url on firebase storage on browser, but I want to do it programmatically on my app.
For security, this is very important.
Can anyone help me?