TTLabs / EvaporateJS

Javascript library for browser to S3 multipart resumable uploads
1.82k stars 206 forks source link

Send Bearer token for signer url ? #460

Closed koder217 closed 3 years ago

koder217 commented 3 years ago

Would it be possible to send a bearer access token when making a call to signer url? I want to protect the url that is issuing the signing policy.

I looked at the authorize method (AuthorizationMethod.prototype.authorize), but couldn't figure out how to modify it to take an access token and add it to Authorization header.

koder217 commented 3 years ago

Nevermind, found the signHeaders option! Thank you!