AdditionalUserInfo

interface AdditionalUserInfo : 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 a Map 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 in getProfile 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 a Map 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 in getProfile 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