We have a react native app, and we're trying to use AWSS3TransferUtility from to upload a large file across a native bridge (ios/obj-c).
We authenticate in js, and somehow need to pass credentials across to obj-c into the AWSCognitoCredentialsProvider (so that we can refresh credentials if the long running upload takes a long time, exceeds expiration, etc).
Is this possible?
答案 0 :(得分:0)
似乎答案大多是“否”。 可能的也是一个很好的解决方案是通过js层中的STS设置临时凭据,然后将它们传递到网桥上的本机层,然后每次重新初始化一个新的传输实用程序,或使用可以在初始化传输实用程序的全局范围内进行了更新。