Skip to content

Commit

Permalink
docs: update s3 presigner example
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanZhengYP committed Mar 25, 2020
1 parent b668537 commit 94421f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/s3-request-presigner/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const signer = new S3Presigner({
credentials: credentialsProvider,
sha256: nodeSha256 //if the signer is used in browser, use `browserSha256` then
});
const url = signer.presign(request);
const url = await signer.presign(request);
```

Typescript Example:
Expand All @@ -30,7 +30,7 @@ const signer = new S3RequestPresigner({
credentials: credentialsProvider,
sha256: nodeSha256 //if the signer is used in browser, use `browserSha256` then
});
const url = signer.presign(request);
const url = await signer.presign(request);
```

To avoid redundant construction parameters when instantiate the s3 presigner,
Expand Down

0 comments on commit 94421f5

Please sign in to comment.