This pull request introduces support for Firebase Phone Authentication.
SignInWithPhoneHelper: A new helper class that manages the initial phone number authentication flow. It handles the process of verifying the phone number and storing the necessary verificationID in UserDefaults.
authenticateUser_PhoneNumber: Added a new function to the AuthProvider protocol and its implementation in the FirebaseAuthProvider class. This function takes the phone number and the verification code (if available) and completes the authentication process using the stored verificationID.
Error Handling: The new functionality includes proper error handling for cases where the verificationID or verificationCode is not found.
This pull request introduces support for Firebase Phone Authentication.
SignInWithPhoneHelper
: A new helper class that manages the initial phone number authentication flow. It handles the process of verifying the phone number and storing the necessaryverificationID
inUserDefaults
.authenticateUser_PhoneNumber
: Added a new function to theAuthProvider
protocol and its implementation in theFirebaseAuthProvider
class. This function takes the phone number and the verification code (if available) and completes the authentication process using the storedverificationID
.Error Handling: The new functionality includes proper error handling for cases where the
verificationID
orverificationCode
is not found.