Provide Mobile App a pdf file which require authorization

Hi everyone, i have a requirement for providing a pdf file(invoice) for mobile app to download and view.

Context: we are server side where provide API for Mobile App. In the app, we have a feature that user can download invoice as pdf file.

Question: how to properly do that? We was about to generate the file and host in our server and provide url but this doesnt work because we can not authorise which User able to download it(we dont want that file is public access).

Do you have any idea for this?

submitted by /u/noobiesofteng
[link] [comments]