Is it possible to initialize a AWSCognitoCredentialsProvider with an existing AWSCognitoAuthUserSession?

时间:2019-03-19 15:01:30

标签: javascript objective-c react-native amazon-s3 amazon-cognito

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?

1 个答案:

答案 0 :(得分:0)

似乎答案大多是“否”。 可能的也是一个很好的解决方案是通过js层中的STS设置临时凭据,然后将它们传递到网桥上的本机层,然后每次重新初始化一个新的传输实用程序,或使用可以在初始化传输实用程序的全局范围内进行了更新。

相关问题