useOtpCredential ​
Hook that creates an otp credential
typescript
import { useOtpCredential } from '@siberiacancode/reactuse';
Usage ​
typescript
useOtpCredential((credential) => console.log(credential));
Demo ​
Api ​
Parameters
Name | Type | Default | Note |
---|---|---|---|
callback | UseOtpCredentialCallback | - | The callback function to be invoked |
Returns
Parameters
Name | Type | Default | Note |
---|---|---|---|
params.onSuccess | UseOtpCredentialCallback | - | The callback function to be invoked on success |
params.onError | UseOtpCredentialCallback | - | The callback function to be invoked on error |