Add a user to a file (allow them to access the file with their access token) by using addUserToFile(url, userId). Do not pass the signed URL to this function.
constsuccess=awaitaddUserToFile(url, uid)
The user can now access the file without you needing to user getFileUrl if they pass their access token via the Authorization header or as a query string parameter token=<access token>