Home > @lukso/data-provider-base
data-provider-base package
Classes
| Class |
Description |
| AuthenticatedFormDataUploader |
This is a custom data provider that uses a pre-shared token to sign a short lived jwt token and send it as a bearer token to the endpoint. On the server side you can then verify the token using this kind of code: |
| BaseFormDataUploader |
Base data provider to upload data using a FormData POST. This is a generic class used by all the custom implementations. |
Functions
| Function |
Description |
| getBlob() |
Return the blob implementation in a way that works in node and browser |
| getFetch() |
Return the fetch implementation in a way that works in node and browser |
| getFile() |
Return the file implementation in a way that works in node and browser |
| getFormData() |
Return the FormData implementation in a way that works in node and browser |
| wrapStream(data) |
Wrap a stream so that a readstream can be detected in node without loading the module in the browser. |
Type Aliases