Authenticates a Wallet with the Treasure Connect login system.

Usage

import { authenticateWallet } from "@treasure-dev/tdk-core";

// const wallet = ...
// const tdk = ...

await authenticateWallet({ wallet, tdk });

Props

wallet

Wallet

  • An active wallet with connected account.

tdk

TDKAPI

  • The client for interacting with the TDK API.