On a nonce-based credential link failure where the user has already linked to the provider, the Firebase auth service may provide an updated Credential.
On a nonce-based credential link failure where the user has already linked to the provider, the Firebase auth service may provide an updated Credential.
[[["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-23 UTC."],[],[],null,["# firebase::auth::AdditionalUserInfo Struct Reference\n\nfirebase::auth::AdditionalUserInfo\n==================================\n\n\n`#include \u003cuser.h\u003e`\n\nAdditional user data returned from an identity provider.\n\nSummary\n-------\n\n| ### Public attributes ||\n|-----------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [profile](#structfirebase_1_1auth_1_1_additional_user_info_1a7052241b279c9a1535655d61d5257d9f) | `std::map\u003c `[Variant](/docs/reference/cpp/class/firebase/variant#classfirebase_1_1_variant)`, `[Variant](/docs/reference/cpp/class/firebase/variant#classfirebase_1_1_variant)` \u003e` Additional identity-provider specific information. |\n| [provider_id](#structfirebase_1_1auth_1_1_additional_user_info_1a22f21833ad85e87385a4d76a9526cb69) | `std::string` The provider identifier. |\n| [updated_credential](#structfirebase_1_1auth_1_1_additional_user_info_1af2d15f430bb4cf7d23ff695b7011c8fb) | [Credential](/docs/reference/cpp/class/firebase/auth/credential#classfirebase_1_1auth_1_1_credential) On a nonce-based credential link failure where the user has already linked to the provider, the Firebase auth service may provide an updated [Credential](/docs/reference/cpp/class/firebase/auth/credential#classfirebase_1_1auth_1_1_credential). |\n| [user_name](#structfirebase_1_1auth_1_1_additional_user_info_1a176357fc06d2fc2a89bf3a8fa7601747) | `std::string` The name of the user. |\n\nPublic attributes\n-----------------\n\n### profile\n\n```c++\nstd::map\u003c Variant, Variant \u003e firebase::auth::AdditionalUserInfo::profile\n``` \nAdditional identity-provider specific information.\n\nMost likely a hierarchical key-value mapping, like a parsed JSON file. Note we use map instead of unordered_map to support older compilers. \n\n### provider_id\n\n```c++\nstd::string firebase::auth::AdditionalUserInfo::provider_id\n``` \nThe provider identifier. \n\n### updated_credential\n\n```c++\nCredential firebase::auth::AdditionalUserInfo::updated_credential\n``` \nOn a nonce-based credential link failure where the user has already linked to the provider, the Firebase auth service may provide an updated [Credential](/docs/reference/cpp/class/firebase/auth/credential#classfirebase_1_1auth_1_1_credential).\n\nIf is_valid returns true on this credential, then it may be passed to a new [firebase::auth::Auth::SignInWithCredential](/docs/reference/cpp/class/firebase/auth/auth#classfirebase_1_1auth_1_1_auth_1a16d92dd01886a3327afe08f65e0fa2b8) request to sign the user in with the provider. \n\n### user_name\n\n```c++\nstd::string firebase::auth::AdditionalUserInfo::user_name\n``` \nThe name of the user."]]