@privy-io/react-auth 1.76.0 → 1.76.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.js +278 -272
- package/dist/index.d.ts +16 -16
- package/dist/index.js +282 -276
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1122,8 +1122,8 @@ declare class PrivyClient {
|
|
|
1122
1122
|
updateApiUrl(customApiUrl?: string | null): void;
|
|
1123
1123
|
authenticate(): Promise<{
|
|
1124
1124
|
user: User | null;
|
|
1125
|
-
isNewUser?: boolean
|
|
1126
|
-
oAuthTokens?: OAuthTokens
|
|
1125
|
+
isNewUser?: boolean;
|
|
1126
|
+
oAuthTokens?: OAuthTokens;
|
|
1127
1127
|
}>;
|
|
1128
1128
|
link(): Promise<{
|
|
1129
1129
|
user: User | null;
|
|
@@ -3177,8 +3177,8 @@ declare function useWallets(): UseWalletsInterface;
|
|
|
3177
3177
|
*/
|
|
3178
3178
|
declare function useMfa(): {
|
|
3179
3179
|
promptMfa: () => Promise<void>;
|
|
3180
|
-
init: (mfaMethod:
|
|
3181
|
-
submit: (mfaMethod:
|
|
3180
|
+
init: (mfaMethod: MfaMethod) => Promise<void | _simplewebauthn_types.PublicKeyCredentialRequestOptionsJSON>;
|
|
3181
|
+
submit: (mfaMethod: MfaMethod, mfaCode: string | _simplewebauthn_types.PublicKeyCredentialRequestOptionsJSON) => Promise<void>;
|
|
3182
3182
|
cancel: () => void;
|
|
3183
3183
|
mfaMethods: ("sms" | "totp" | "passkey")[];
|
|
3184
3184
|
};
|
|
@@ -3488,7 +3488,7 @@ declare function useLogin(callbacks?: PrivyEvents['login']): {
|
|
|
3488
3488
|
/**
|
|
3489
3489
|
* Opens the Privy login modal and prompts the user to login.
|
|
3490
3490
|
*/
|
|
3491
|
-
login: (options?: RuntimeLoginOverridableOptions | react.MouseEvent<any, any>
|
|
3491
|
+
login: (options?: RuntimeLoginOverridableOptions | react.MouseEvent<any, any>) => void;
|
|
3492
3492
|
};
|
|
3493
3493
|
|
|
3494
3494
|
/**
|
|
@@ -3767,8 +3767,8 @@ declare function useConnectWallet(callbacks?: PrivyEvents['connectWallet']): {
|
|
|
3767
3767
|
* Opens the Privy modal and prompts the user to connect a wallet.
|
|
3768
3768
|
*/
|
|
3769
3769
|
connectWallet: (options?: {
|
|
3770
|
-
suggestedAddress?: string
|
|
3771
|
-
} | react.MouseEvent<any, any>
|
|
3770
|
+
suggestedAddress?: string;
|
|
3771
|
+
} | react.MouseEvent<any, any>) => void;
|
|
3772
3772
|
};
|
|
3773
3773
|
|
|
3774
3774
|
/**
|
|
@@ -3824,7 +3824,7 @@ interface UseFundWalletInterface {
|
|
|
3824
3824
|
* @param callbacks.onUserExited {@link PrivyEvents} Callback that will execute when a funding flow is exited. This fires when a user closes a funding flow modal, for any reason.
|
|
3825
3825
|
* @returns fundWallet - function to on-ramp funds to any given wallet
|
|
3826
3826
|
*/
|
|
3827
|
-
declare const useFundWallet: (callbacks?: PrivyEvents[
|
|
3827
|
+
declare const useFundWallet: (callbacks?: PrivyEvents["fundWallet"]) => UseFundWalletInterface;
|
|
3828
3828
|
|
|
3829
3829
|
/**
|
|
3830
3830
|
* Hook to create and interact with Solana wallets. This currently only supports an embedded Solana wallet and no
|
|
@@ -3935,7 +3935,7 @@ declare function useSendTransaction(callbacks?: PrivyEvents['sendTransaction']):
|
|
|
3935
3935
|
/**
|
|
3936
3936
|
* Prompts a user to send a transaction using their embedded wallet.
|
|
3937
3937
|
*/
|
|
3938
|
-
sendTransaction: (data: UnsignedTransactionRequest, uiOptions?: SendTransactionModalUIOptions
|
|
3938
|
+
sendTransaction: (data: UnsignedTransactionRequest, uiOptions?: SendTransactionModalUIOptions, fundWalletConfig?: FundWalletConfig) => Promise<TransactionReceipt>;
|
|
3939
3939
|
};
|
|
3940
3940
|
|
|
3941
3941
|
/**
|
|
@@ -3983,7 +3983,7 @@ declare function useSignMessage(callbacks?: PrivyEvents['signMessage']): {
|
|
|
3983
3983
|
/**
|
|
3984
3984
|
* Prompts a user to sign a message using their embedded wallet.
|
|
3985
3985
|
*/
|
|
3986
|
-
signMessage: (message: string, uiOptions?: SignMessageModalUIOptions
|
|
3986
|
+
signMessage: (message: string, uiOptions?: SignMessageModalUIOptions) => Promise<string>;
|
|
3987
3987
|
};
|
|
3988
3988
|
|
|
3989
3989
|
/**
|
|
@@ -3997,7 +3997,7 @@ declare function useSignTypedData(callbacks?: PrivyEvents['signTypedData']): {
|
|
|
3997
3997
|
/**
|
|
3998
3998
|
* Prompts a user to sign typed data using their embedded wallet.
|
|
3999
3999
|
*/
|
|
4000
|
-
signTypedData: (typedData: SignTypedDataParams, uiOptions?: SignMessageModalUIOptions
|
|
4000
|
+
signTypedData: (typedData: SignTypedDataParams, uiOptions?: SignMessageModalUIOptions) => Promise<string>;
|
|
4001
4001
|
};
|
|
4002
4002
|
|
|
4003
4003
|
/**
|
|
@@ -4077,7 +4077,7 @@ declare function addRpcUrlOverrideToChain(chain: Chain, rpcUrl: string): {
|
|
|
4077
4077
|
};
|
|
4078
4078
|
default: {
|
|
4079
4079
|
http: readonly string[];
|
|
4080
|
-
webSocket?: readonly string[]
|
|
4080
|
+
webSocket?: readonly string[];
|
|
4081
4081
|
};
|
|
4082
4082
|
} | {
|
|
4083
4083
|
privyWalletOverride: {
|
|
@@ -4085,12 +4085,12 @@ declare function addRpcUrlOverrideToChain(chain: Chain, rpcUrl: string): {
|
|
|
4085
4085
|
};
|
|
4086
4086
|
default: {
|
|
4087
4087
|
http: readonly string[];
|
|
4088
|
-
webSocket?: readonly string[]
|
|
4088
|
+
webSocket?: readonly string[];
|
|
4089
4089
|
};
|
|
4090
4090
|
};
|
|
4091
4091
|
id: number;
|
|
4092
4092
|
name: string;
|
|
4093
|
-
network?: string
|
|
4093
|
+
network?: string;
|
|
4094
4094
|
nativeCurrency: {
|
|
4095
4095
|
name: string;
|
|
4096
4096
|
symbol: string;
|
|
@@ -4105,8 +4105,8 @@ declare function addRpcUrlOverrideToChain(chain: Chain, rpcUrl: string): {
|
|
|
4105
4105
|
name: string;
|
|
4106
4106
|
url: string;
|
|
4107
4107
|
};
|
|
4108
|
-
}
|
|
4109
|
-
testnet?: boolean
|
|
4108
|
+
};
|
|
4109
|
+
testnet?: boolean;
|
|
4110
4110
|
};
|
|
4111
4111
|
|
|
4112
4112
|
/**
|