đ Two-Step Verification
Enable two-step verification for the business phone number. WhatsApp requires a 6-digit PIN.
await whatsapp.twoStepVerification(
pin: 123456,
);
Use the string variant when the PIN may start with zeros:
await whatsapp.registrationService.twoStepVerificationWithPin('001234');
| param | type | required | description |
|---|---|---|---|
pin | int / String | yes | 6-digit two-step verification PIN |
Keep the PIN safe
Meta requires the PIN for future registration and migration operations. Store it in your secret manager, not in source control.