Hub JS Package

Hub JS Package

  • Users
  • Buckets
  • Threads
  • Textile Docs

›Common Types

Common Types

  • UserAuth type
  • CopyAuthOptions interface
  • WithKeyInfoOptions interface
  • WithUserAuthOptions interface
  • APISig type
  • KeyInfo type
  • Status enum
  • Variant enum

Type Properties

  • CopyAuthOptions.debug property
  • WithKeyInfoOptions.debug property
  • WithKeyInfoOptions.date property
  • WithKeyInfoOptions.host property
  • WithUserAuthOptions.debug property
  • WithUserAuthOptions.host property

@textile/hub > UserAuth

UserAuth type

UserAuth is a type describing the minimal requirements create a session from a user group key. Generate with createUserAuth().

Optional token generated by Client.getToken or Client.getTokenChallenge.

Signature:

export declare type UserAuth = {
    key: string;
    sig: string;
    msg: string;
    token?: string;
};

Example

Import

import {UserAuth} from '@textile/hub';

CopyAuthOptions interface →
  • UserAuth type
  • Example
Hub JS Package
Docs
Getting StartedThreadDBBuckets
Resources
All DocumentationProject SlackBlog
More
GitHubStar
Follow @textileio