Faizan Pasha
Faizan Pasha
@stnguyen90 `appwrite-worker-messaging | [critical] (Job{v1-messaging} | ID: 22cad4fb7ef4db28808cdf24806cb446 | MessagingV1 | [{"project":null,"user":null,"payload":[],"recipient":"[MY_NUMBER]","message":"692495","events":["."]}]) has failed TypeError: Cannot assign Appwrite\SMS\Adapter\Twilio to property MessagingV1::$sms of type ?Appwrite\Auth\SMS in /usr/src/code/app/workers/messaging.php:36`
@Mr-Malomz I have fixed the issue and raised a [pull request ](https://github.com/appwrite/appwrite/pull/3862)
@Mr-Malomz yes the PR has not been merged yet. > Format for version Format for version >= 0.15 `_APP_SMS_PROVIDER=sms://:@twilio`
Hello @Mr-Malomz The secret is the OTP you will get on your mobile number. In `createPhoneSession` it doesn't return secret. After you get a response from the `createPhoneSession` method store...
@Mr-Malomz You have to verify your mobile number to get sms on twilio trail account
@Mr-Malomz Did you check the twilio log?
@Mr-Malomz Exactly. Can I have a look at the code please? And what version of appwrite npm dependency are you using?
@Mr-Malomz Go to `helper/utils` in `phoneAuth` use `'unique()'` as `userId`. `export const phoneAuth = (phone_number) => { return account.createPhoneSession('unique()', phone_number); };`
@Mr-Malomz It wasn't working before but after I changed it to `'unique()'` it worked  Make sure to add country code.
@Mr-Malomz Delete that rn You are exposing the access to your account to the entire world