uppy/packages/@uppy/core/src
Mikael Finstad 2c75ddacfe
@uppy/companion: implement refresh for authentication tokens (#4448)
* allow storing multiple tokens

inside uppy auth token

* de-duplicate uploadRemote

by creating a new superclass UploaderPlugin

* pull out requestSocketToken

from MiniXHRUpload

* add class UploaderPlugin

* refactor

* refactor

* refactor/reuse

* refactor/make getAuthToken private

* fix bug

* implement refresh token

for dropbox and google drive

closes #2721

* fix test

* also update auth token cookie
when refreshing token

* fix build error on node 14

* increase auth token expiry

to workaround expiry

* Update packages/@uppy/companion-client/src/RequestClient.js

Co-authored-by: Antoine du Hamel <antoine@transloadit.com>

* make queueRequestSocketToken private

* rename arg

* fix lint

* log error message

* fix s3

* Update packages/@uppy/companion-client/src/Provider.js

Co-authored-by: Antoine du Hamel <antoine@transloadit.com>

---------

Co-authored-by: Antoine du Hamel <antoine@transloadit.com>
2023-06-22 11:18:48 +02:00
..
__snapshots__ meta: upgrade to Jest 29 (#4049) 2022-08-30 17:25:19 +02:00
mocks @uppy/core: refactor to ESM (#3744) 2022-05-20 11:04:09 +02:00
_common.scss Single File Mode: fix layout and make optional (#4374) 2023-04-13 22:06:53 +01:00
_utils.scss build: add stylelint (#3124) 2021-08-24 01:37:57 +01:00
_variables.scss @uppy/dashboard: Fix low-contrast hover styles (#4347) 2023-03-07 19:27:42 +08:00
BasePlugin.js Fix all breaking todo comments for 3.0 (#3907) 2022-08-03 20:07:24 +02:00
getFileName.js @uppy/core: refactor to ESM (#3744) 2022-05-20 11:04:09 +02:00
index.js Fix all breaking todo comments for 3.0 (#3907) 2022-08-03 20:07:24 +02:00
locale.js @uppy/core: improve performance of validating & uploading files (#4402) 2023-04-15 23:50:19 +08:00
loggers.js @uppy/core: refactor to ESM (#3744) 2022-05-20 11:04:09 +02:00
Restricter.js @uppy/core: improve performance of validating & uploading files (#4402) 2023-04-15 23:50:19 +08:00
style.scss Move stylesheets into packages. 2018-06-18 12:35:47 +02:00
supportsUploadProgress.js @uppy/core: refactor to ESM (#3744) 2022-05-20 11:04:09 +02:00
supportsUploadProgress.test.js @uppy/core: refactor to ESM (#3744) 2022-05-20 11:04:09 +02:00
UIPlugin.js @uppy/webcam: fix bug when Dashboard is using a custom id (#4099) 2022-10-19 16:08:49 -03:00
UIPlugin.test.js @uppy/core: refactor to ESM (#3744) 2022-05-20 11:04:09 +02:00
UploaderPlugin.js @uppy/companion: implement refresh for authentication tokens (#4448) 2023-06-22 11:18:48 +02:00
Uppy.js @uppy/companion: implement refresh for authentication tokens (#4448) 2023-06-22 11:18:48 +02:00
Uppy.test.js @uppy/core: improve performance of validating & uploading files (#4402) 2023-04-15 23:50:19 +08:00