I signed in my user using apple Oauth now i wish to do phone verification so I am implementing this block of code
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
Okay shall I ask for the creation of a password first ?
that would make sense
Recommended threads
- The current user is not authorized to pe...
I want to create a document associated with user after log in with OAuth. The user were logged in, but Appwrite said user is unauthorized. User is logged in wi...
- self-hosted auth: /v1/account 404 on saf...
Project created in React/Next.js, Appwrite version 1.6.0. Authentication works in all browsers except Safari (ios), where an attempt to connect to {endpoint}/v1...
- Attributes Confusion
```import 'package:appwrite/models.dart'; class OrdersModel { String id, email, name, phone, status, user_id, address; int discount, total, created_at; L...