TUS-Server : S3 datastore dynamic

Hi,

We want to have a single endpoint for uploading files to S3. One of the problems we encounter is that each client can have its own S3, and therefore it is not possible with the TUS S3 Datastore to be able to choose the right credentials and S3 endpoint at the time of upload.
Is it possible to make the ‘datastore’ parameter dynamic on a single port?

The S3 parameters (endPoint, accessKeyId, secretKey) could, for example, be provided on onIncomingRequest or another method.

  path: '/files',
  **datastore: storeS3,**
  respectForwardedHeaders: true,
  async onIncomingRequest(req, res) {
      ...
  },
  ...
}```

Thanks for your suggestions.