Package Exports
- nhost-js-sdk
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (nhost-js-sdk) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
nhost-js-sdk
Auth
- register
- activate account
- sign in
- implement refetch token strategy
- new password
Storage
- Upload
- Download
usage
const config = {
endpoint: 'http://localhost:8083',
};
const nhost = new nhost(config);
Examples
Register user
await nhost.register(username, password);
Upload files
const res = await nhost.upload(path, files, onUploadProgress);
Get full URL of file
const url = nhost.url(file_key);