Stay organized with collections
Save and categorize content based on your preferences.
firebase::auth::AdditionalUserInfo
#include <user.h>
Additional user data returned from an identity provider.
Summary
Public attributes
|
profile
|
Additional identity-provider specific information.
|
provider_id
|
std::string
The provider identifier.
|
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.
|
user_name
|
std::string
The name of the user.
|
Public attributes
profile
std::map< Variant, Variant > firebase::auth::AdditionalUserInfo::profile
Additional identity-provider specific information.
Most likely a hierarchical key-value mapping, like a parsed JSON file. Note we use map instead of unordered_map to support older compilers.
provider_id
std::string firebase::auth::AdditionalUserInfo::provider_id
updated_credential
Credential firebase::auth::AdditionalUserInfo::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.
If is_valid returns true on this credential, then it may be passed to a new firebase::auth::Auth::SignInWithCredential request to sign the user in with the provider.
user_name
std::string firebase::auth::AdditionalUserInfo::user_name
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-01-23 UTC.
[null,null,["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."]]