Skip to main content

Auth Module

import * as sethealth from '@sethealth/core';
sethealth.auth.[...]

API reference#

auth.hasAccessToken()

Returns if the access token was already provided and it's still valid.


auth.setAccessToken( token: string )

An access token needs to be provided in order to perform authenticated called to the Sethealth API such as a volume upload.

This token should be generated using in your server using the server-side clients of Sethealth, look at: - https://github.com/sethealth/py-client - https://github.com/sethealth/go-client