In Firebase auth using phone auth in flutter, please add a feature for creating a user with a custom uid, probably via the admin sdk
In this code await admin.auth().createUser({
email: email,
displayName: name,
uid: uid,
emailVerified: false,
password: password,
disabled: false,
});, if email and password are created, please create the user via that login method and if only phone is provided and no email, then let the user be created via phone auth. So that later on, when they try to sign in via phone auth, the system doesn't create a whole new user with a new uid but just lets the user sign into that account
3
votes
Mubiru Simeon
shared this idea