@turnkey/react-wallet-kit
Version:
The easiest and most powerful way to integrate Turnkey's Embedded Wallets into your React applications.
58 lines (55 loc) • 1.92 kB
JavaScript
export { KeyFormat } from '@turnkey/iframe-stamper';
var WalletSelectorMode;
(function (WalletSelectorMode) {
/** Auth mode: user is logging in or signing up with a wallet */
WalletSelectorMode["Auth"] = "auth";
/** Connect mode: user is connecting/disconnecting an external wallet */
WalletSelectorMode["Connect"] = "connect";
})(WalletSelectorMode || (WalletSelectorMode = {}));
/**@internal */
var ExportType;
(function (ExportType) {
ExportType["Wallet"] = "WALLET";
ExportType["PrivateKey"] = "PRIVATE_KEY";
ExportType["WalletAccount"] = "WALLET_ACCOUNT";
})(ExportType || (ExportType = {}));
/**@internal */
var ImportType;
(function (ImportType) {
ImportType["Wallet"] = "WALLET";
ImportType["PrivateKey"] = "PRIVATE_KEY";
})(ImportType || (ImportType = {}));
/**
* Enum representing the authentication states of the user.
* - Unauthenticated: The user is not authenticated.
* - Authenticated: The user is authenticated.
*/
var AuthState;
(function (AuthState) {
AuthState["Unauthenticated"] = "unauthenticated";
AuthState["Authenticated"] = "authenticated";
})(AuthState || (AuthState = {}));
/**
* Enum representing the states of the client.
* - Loading: The client is currently loading.
* - Ready: The client is ready for use.
* - Error: An error occurred while initializing the client.
*/
var ClientState;
(function (ClientState) {
ClientState["Loading"] = "loading";
ClientState["Ready"] = "ready";
ClientState["Error"] = "error";
})(ClientState || (ClientState = {}));
/**
* Enum representing the authentication methods.
*/
var AuthMethod;
(function (AuthMethod) {
AuthMethod["Otp"] = "otp";
AuthMethod["Passkey"] = "passkey";
AuthMethod["Wallet"] = "wallet";
AuthMethod["Oauth"] = "oauth";
})(AuthMethod || (AuthMethod = {}));
export { AuthMethod, AuthState, ClientState, ExportType, ImportType, WalletSelectorMode };
//# sourceMappingURL=base.mjs.map