AdditionalUserInfo

public interfaceAdditionalUserInfo extendsParcelable


Object that contains additional user information as a result of a successful sign-in, link, or re-authentication operation.

Available information contained within depends on the provider with which a sign-in, link, or re-authenticate operation was most recently done.

Summary

Public methods

abstract @NullableMap<StringObject>

Returns aMap containing IDP-specific user data if the provider is one of Facebook, GitHub, Google, Twitter, Microsoft, or Yahoo.

abstract @NullableString

Returns the provider ID for specifying which provider the information ingetProfile is for.

abstract @NullableString

Returns the username if the provider is GitHub or Twitter

abstract boolean

Returns whether the user is new or existing

Inherited Constants

Fromandroid.os.Parcelable
default static final int
default static final int

Inherited methods

Fromandroid.os.Parcelable
abstract int
abstract void
writeToParcel(Parcel p, int p1)

Public methods

getProfile

abstract @NullableMap<StringObjectgetProfile()

Returns aMap containing IDP-specific user data if the provider is one of Facebook, GitHub, Google, Twitter, Microsoft, or Yahoo.

getProviderId

abstract @NullableString getProviderId()

Returns the provider ID for specifying which provider the information ingetProfile is for.

getUsername

abstract @NullableString getUsername()

Returns the username if the provider is GitHub or Twitter

isNewUser

abstract boolean isNewUser()

Returns whether the user is new or existing

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 2025-07-21 UTC.