Back

Phone Verification after Apple Sign In

  • 0
  • Auth
  • Flutter
  • Apple
Aarush Acharya
16 May, 2024, 23:45

I signed in my user using apple Oauth now i wish to do phone verification so I am implementing this block of code

TypeScript
Future<void> updateAndVerifyPhoneNumber(String phone) async {

await appwrite.account
        .updatePhone(phone: phone, password: appwrite.user.password!);

await appwrite.account.createPhoneVerification();

  }

But I do not seem to get anything for the password of the user, I am aware one way is to take it in from the user, but since user signed in from Apple a password was not created.

what shall I do in this case

TL;DR
Title: Phone Verification Issue after Apple Sign In Developers want to implement phone verification after Apple OAuth sign in but face an issue with user passwords, as Apple sign in does not create passwords. One solution can be to prompt users to create a password after Apple sign in.
Aarush Acharya
16 May, 2024, 23:54

Okay shall I ask for the creation of a password first ?

Aarush Acharya
16 May, 2024, 23:54

that would make sense

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