Back

[CLOSED] Not getting authentication code via Sms.

  • 0
  • Flutter
  • Cloud
conqueror
19 Oct, 2023, 18:04

Not getting authentication code.

TL;DR
Developers are not receiving the authentication code via SMS from the appwrite SMS server. The issue seems to be specific to the cloud version. The code to generate a session token is working, but the authentication code is not being received. The provided code snippet looks fine. The developers are advised to check the phone number format being used for correctness. Solution: The issue of not receiving the authentication code is resolved by ensuring the correct phone number format is used for SMS verification.
conqueror
19 Oct, 2023, 18:07

getting sessiontoken but not the code

conqueror
19 Oct, 2023, 18:08

is appwrite sms server is not working ?

VincentGe
19 Oct, 2023, 18:10

Are you on Cloud or self-hosted

conqueror
19 Oct, 2023, 18:11

cloud

conqueror
19 Oct, 2023, 18:11

on cloud

VincentGe
19 Oct, 2023, 18:11

Let me check

VincentGe
19 Oct, 2023, 18:14

Works for me

conqueror
19 Oct, 2023, 18:15

Phone number is showing in auth section but not getting sms.

VincentGe
19 Oct, 2023, 18:15

I am getting my SMS codes <a:spinthink:588968443374731274>

VincentGe
19 Oct, 2023, 18:15

Can I see your code?

conqueror
19 Oct, 2023, 18:16
TypeScript
                                sessionToken = await account.createPhoneSession(
                                  userId: ID.unique(),
                                  phone:"+${Selectedcountry.phoneCode.toString()}${mobileNumberController.text.trim()}",
                                );

                                print(sessionToken.userId);
                                print(Selectedcountry.phoneCode);
                                setState(() {_isLoginIn= false;});
                                Navigator.push(context, MaterialPageRoute(builder: (context)=>
                                    OtpVerificationPage(VerificationId:sessionToken.userId)));
                              }catch(e){
                                print(e);
                              }```
conqueror
19 Oct, 2023, 18:17

getting only sessiontoken

VincentGe
19 Oct, 2023, 18:17

Can I see what the number looks like?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more