Merge pull request #32 from abhinavxd/patch-1

fix: expired token error while generating presigned URLs
This commit is contained in:
Rohan Verma
2025-09-18 00:07:32 +05:30
committed by GitHub
+4
View File
@@ -31,6 +31,10 @@ type PresignedInput struct {
// for Authentication using Query Parameters.
// (https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-query-string-auth.html)
func (s3 *S3) GeneratePresignedURL(in PresignedInput) string {
if err := s3.renewIAMToken(); err != nil {
return ""
}
var (
nowTime = nowTime()