Skip to content

useOtpCredential ​

Category
Browser

Hook that creates an otp credential

typescript
import { useOtpCredential } from '@siberiacancode/reactuse';

Usage ​

typescript
useOtpCredential((credential) => console.log(credential));

Demo ​

Api ​

Parameters

NameTypeDefaultNote
callbackUseOtpCredentialCallback-The callback function to be invoked

Parameters

NameTypeDefaultNote
params.onSuccessUseOtpCredentialCallback-The callback function to be invoked on success
params.onErrorUseOtpCredentialCallback-The callback function to be invoked on error

Contributors ​

Source • Demo