Creates and connects a wallet and authenticates the user with the Treasure Connect login system.
TreasureConnectClient
createTreasureConnectClient
.string | undefined
"https://tdk-api.treasure.lol"
."https://tdk-api.spellcaster.lol"
.number | undefined
42161
(Arbitrum One).string | undefined
"ecosystem.treasure"
.string
"email" | "passkey" | "auth_endpoint" | "google" | "apple" | "discord" | "telegram" | "x"
"popup" | "redirect" | "window" | undefined
"popup"
.string | undefined
string | undefined
mode
is "email"
.string | undefined
email
by sendEmailVerificationCode
.mode
is "email"
.string | undefined
string | undefined
string | undefined
mode
is "auth_endpoint"
.SessionOptions | undefined
Creates and connects a wallet and authenticates the user with the Treasure Connect login system.
TreasureConnectClient
createTreasureConnectClient
.string | undefined
"https://tdk-api.treasure.lol"
."https://tdk-api.spellcaster.lol"
.number | undefined
42161
(Arbitrum One).string | undefined
"ecosystem.treasure"
.string
"email" | "passkey" | "auth_endpoint" | "google" | "apple" | "discord" | "telegram" | "x"
"popup" | "redirect" | "window" | undefined
"popup"
.string | undefined
string | undefined
mode
is "email"
.string | undefined
email
by sendEmailVerificationCode
.mode
is "email"
.string | undefined
string | undefined
string | undefined
mode
is "auth_endpoint"
.SessionOptions | undefined