Whether the current token is valid
Promise for the authentication token
Helper to fetch a token for a given user
The URI to upload to.
The payload to upload.
Optionally override base header object to mix with auth header for the upload.
The response from the server.
See examples at top of file
Set JWT token if already known
The token to use for authentication.
The client instance.
Get the authentication token for the current user. By default, reuses current token if available.
If true, forces a new token to be generated; defaults to false
The authentication token
See examples at top of file
The username to authenticate with.
The password to authenticate with.
The organization to use (optional)
The protocol to use for the server during uploads: 'http' or 'https'.
The hostname of the server during uploads: defaults to 'hub.graphistry.com'
Base path to use inside the browser and when sharing public URLs: defaults to '{protocol}://{host}'
The fetch implementation to use
The version of the client library
The agent name to use when communicating with the server
Client examples
Authenticate against a Graphistry server using a username and password, and manage communications with it.
Different authentication modes may be desirable depending on the type of Graphistry server.
Authenticate against Graphistry Hub for a personal account
Authenticate against an org in Graphistry Hub
Authenticate against a private Graphistry server
Upload via internal IP but publish urls via a public domain
Upload through the local docker network but publish urls via a public domain
Create a client with an externally-provided JWT token