constconfirmationResult=awaitsignInWithPhoneNumber(auth,phoneNumber,applicationVerifier);// Obtain verificationCode from the user.constuserCredential=awaitconfirmationResult.confirm(verificationCode);
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-01-19 UTC."],[],[],null,["A result from a phone number sign-in, link, or reauthenticate call.\n\n**Signature:** \n\n export interface ConfirmationResult \n\nProperties\n\nMethods\n\nConfirmationResult.verificationId\n\nThe phone number authentication operation's verification ID.\n\nThis can be used along with the verification code to initialize a [PhoneAuthCredential](./auth.phoneauthcredential.md#phoneauthcredential_class).\n\n**Signature:** \n\n readonly verificationId: string;\n\nConfirmationResult.confirm()\n\nFinishes a phone number sign-in, link, or reauthentication.\n\n**Signature:** \n\n confirm(verificationCode: string): Promise\u003cUserCredential\u003e;\n\nParameters\n\n**Returns:**\n\nPromise\\\u003c[UserCredential](./auth.usercredential.md#usercredential_interface)\\\u003e\n\nExample \n\n const confirmationResult = await signInWithPhoneNumber(auth, phoneNumber, applicationVerifier);\n // Obtain verificationCode from the user.\n const userCredential = await confirmationResult.confirm(verificationCode);"]]