useConnector()
hook provides variables and methods to simplify handling connections with both custodial clients and wallets. It offers the following methods and variables:
connect()
connector.id
: ID of the connector.connectAndSignIn()
connector.id
: ID of the connector.flow
: Flow is an optional parameter and it can be redirect
or popup
. It defaults to redirect
.disconnect()
connector.id
: ID of the connector.isConnected
connector
isConnecting
true
if connecting, false
when the connection is complete). This is useful for managing UI states.
connectors