Hub JS Package

Hub JS Package

  • Users
  • Buckets
  • Threads
  • Textile Docs

@textile/hub > Filecoin > setToken

Filecoin.setToken() method

Obtain a token for interacting with the remote API. When your app is creating new private-key based users to interact with the API using User Group keys, you must first create a new token for each new user. Tokens do not change after you create them.

Signature:

setToken(token: string): Promise<void>;

Parameters

ParameterTypeDescription
tokenstring

Returns:

Promise<void>

  • Filecoin.setToken() method
  • Parameters
Hub JS Package
Docs
Getting StartedThreadDBBuckets
Resources
All DocumentationProject SlackBlog
More
GitHubStar
Follow @textileio