firebase:: auth:: UserInfoInterface
#include <user.h>
Interface implemented by each identity provider.
Summary
Inheritance
Direct Known Subclasses:firebase::auth::UserConstructors and Destructors | |
|---|---|
~UserInfoInterface() |
Public functions | |
|---|---|
display_name() const | virtual std::stringGets the display name associated with the user, if any. |
email() const | virtual std::stringGets email associated with the user, if any. |
phone_number() const | virtual std::stringGets the phone number for the user, in E.164 format. |
photo_url() const | virtual std::stringGets the photo url associated with the user, if any. |
provider_id() const | virtual std::stringGets the provider ID for the user (For example, "Facebook"). |
uid() const | virtual std::stringGets the unique Firebase user ID for the user. |
Public functions
display_name
virtualstd::stringdisplay_name()const
Gets the display name associated with the user, if any.
virtualstd::stringemail()const
Gets email associated with the user, if any.
phone_number
virtualstd::stringphone_number()const
Gets the phone number for the user, in E.164 format.
photo_url
virtualstd::stringphoto_url()const
Gets the photo url associated with the user, if any.
provider_id
virtualstd::stringprovider_id()const
Gets the provider ID for the user (For example, "Facebook").
uid
virtualstd::stringuid()const
Gets the unique Firebase user ID for the user.
Note: The user's ID, unique to the Firebase project. Do NOT use this value to authenticate with your backend server, if you have one. UseUser::GetToken() instead.
~UserInfoInterface
virtual~UserInfoInterface()
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-01-23 UTC.