benjreinhart / react-native-aws3

Pure JavaScript React Native library for uploading to AWS S3
MIT License
399 stars 151 forks source link

add sessionToken option to support temprary security credentials #100

Open MasahiroMorita opened 3 years ago

MasahiroMorita commented 3 years ago

This pull request is to support temporary security credentials.

To upload a file with temporary security credentials, you have to add x-amz-security-token header, as described in this. You can do this by adding sessionToken in options argument.