Type alias StorageConstructorOptions

StorageConstructorOptions: {
    apiOrigin: string;
    getBearerToken: (() => Promise<string | undefined>);
    region: string;
}

The properties to be passed to the Storage class constructors

Type declaration

  • apiOrigin: string

    The API origin URL used to communicate with the OneBlink API

  • getBearerToken: (() => Promise<string | undefined>)

    A function that returns a promise resolving to a Bearer token. If the promise resolves to a truthy value, the authorization header will be set with the value.

      • (): Promise<string | undefined>
      • Returns Promise<string | undefined>

  • region: string

    The AWS region to upload the submission to