useConnectWithOtp
hook to expose two methods: connectWithSms
and verifyOneTimePassword
.
The first method will send an SMS to the user’s phone number, and the second will verify the OTP sent to the user’s phone.
Once that’s done, the user will be authenticated and you can access their information through the useDynamicContext
hook!
DynamicContextProvider
and EthereumWalletConnectors
.
You app.js file should look like this (note that we are only importing the EthereumWalletConnectors for now):
useConnectWithOtp
hook to handle the SMS setup.