Appearance
Documentation / react-auth / useConnectOrCreateWallet
Function: useConnectOrCreateWallet() ​
useConnectOrCreateWallet(
callbacks
?):Object
Parameters ​
• callbacks?: Object
• callbacks.onError?: (error
) => void
Callback that will execute in the case of a non-successful wallet connection.
ParamPrivyErrorCode - the corresponding error code
• callbacks.onSuccess?: (params
) => void
Callback that will execute once a successful connectWallet
completes. This will not run in the case of a wallet-based authentication or link flow.
Param [BaseConnectedEthereumWallet | BaseConnectedSolanaWallet]([object Object]) the wallet
object correspending to the connection
Returns ​
Object
connectOrCreateWallet ​
connectOrCreateWallet: () =>
void
Returns ​
void