firebase::auth::UserInfoInterface

This is an abstract class.

#include <user.h>

Interface implemented by each identity provider.

Summary

Inheritance

Direct Known Subclasses:firebase::auth::User

Constructors and Destructors

~UserInfoInterface()

Public functions

display_name() const =0
virtual std::string
Gets the display name associated with the user, if any.
email() const =0
virtual std::string
Gets email associated with the user, if any.
phone_number() const =0
virtual std::string
Gets the phone number for the user, in E.164 format.
photo_url() const =0
virtual std::string
Gets the photo url associated with the user, if any.
provider_id() const =0
virtual std::string
Gets the provider ID for the user (For example, "Facebook").
uid() const =0
virtual std::string
Gets the unique Firebase user ID for the user.

Public functions

display_name

virtual std::string display_name() const =0

Gets the display name associated with the user, if any.

email

virtual std::string email() const =0

Gets email associated with the user, if any.

phone_number

virtual std::string phone_number() const =0

Gets the phone number for the user, in E.164 format.

photo_url

virtual std::string photo_url() const =0

Gets the photo url associated with the user, if any.

provider_id

virtual std::string provider_id() const =0

Gets the provider ID for the user (For example, "Facebook").

uid

virtual std::string uid() const =0

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. Use User::GetToken() instead.

~UserInfoInterface

virtual  ~UserInfoInterface()

Send feedback about...

Need help? Visit our support page.