Custom provider fixes (#4498)

Fixes: https://github.com/transloadit/uppy/issues/4460
This commit is contained in:
Mikael Finstad 2023-06-19 15:08:21 +02:00 committed by GitHub
parent c377379019
commit 8b6e87a168
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -34,7 +34,9 @@ function adaptData (res) {
class MyCustomProvider {
static version = 2
authProvider = 'myunsplash'
static get authProvider () {
return 'myunsplash'
}
// eslint-disable-next-line class-methods-use-this
async list ({ token, directory }) {

View file

@ -77,7 +77,7 @@ exports.getCredentialsOverrideMiddleware = (providers, companionOptions) => {
return
}
if (!companionOptions.providerOptions[providerName].credentialsURL) {
if (!companionOptions.providerOptions[providerName]?.credentialsURL) {
next()
return
}