Constructors

Properties

$zkLoginSession: WritableAtom<{
    initialized: boolean;
    value: null | ZkLoginSession;
}>
$zkLoginState: WritableAtom<ZkLoginState>

Accessors

Methods

  • Parameters

    • input: {
          clientId: string;
          extraParams?: Record<string, unknown>;
          network?: "mainnet" | "testnet" | "devnet";
          provider: AuthProvider;
          redirectUrl: string;
      }
      • clientId: string
      • OptionalextraParams?: Record<string, unknown>
      • Optionalnetwork?: "mainnet" | "testnet" | "devnet"
      • provider: AuthProvider
      • redirectUrl: string

    Returns Promise<string>

  • Parameters

    • __namedParameters: {
          bytes: string;
          client: SuiClient;
          digest: string;
          network?: "mainnet" | "testnet";
      }
      • bytes: string
      • client: SuiClient
      • digest: string
      • Optionalnetwork?: "mainnet" | "testnet"

    Returns Promise<{
        digest: string;
    }>

  • Parameters

    • __namedParameters: {
          network?: "mainnet" | "testnet";
      } = {}
      • Optionalnetwork?: "mainnet" | "testnet"

    Returns Promise<EnokiKeypair>

  • Parameters

    • __namedParameters: {
          network?: "mainnet" | "testnet";
      } = {}
      • Optionalnetwork?: "mainnet" | "testnet"

    Returns Promise<CreateZkLoginZkpApiResponse>

  • Returns Promise<null | ZkLoginSession>

  • Parameters

    • hash: string = window.location.hash

    Returns Promise<null | string>

  • Returns Promise<void>

  • Parameters

    • __namedParameters: {
          client: SuiClient;
          network?: "mainnet" | "testnet";
          transaction: Transaction;
      }

    Returns Promise<{
        digest: string;
    }>

  • Parameters

    • __namedParameters: {
          client: SuiClient;
          network?: "mainnet" | "testnet";
          transaction: Transaction;
      }

    Returns Promise<CreateSponsoredTransactionApiResponse>