AdditionalUserInfo

interfaceAdditionalUserInfo :Parcelable


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 functions

(Mutable)Map<String!, Any!>?

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

String?

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

String?

Returns the username if the provider is GitHub or Twitter

Boolean

Returns whether the user is new or existing

Public functions

getProfile

fun getProfile(): (Mutable)Map<String!, Any!>?

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

getProviderId

fun getProviderId(): String?

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

getUsername

fun getUsername(): String?

Returns the username if the provider is GitHub or Twitter

isNewUser

fun isNewUser(): Boolean

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.