AuthResult

public interfaceAuthResult extendsParcelable


Result object obtained from operations that can affect the authentication state. Contains a method that returns the currently signed-in user after the operation has completed.

Summary

Public methods

abstract @NullableAdditionalUserInfo

Returns IDP-specific information for the user if the provider is one of Facebook, Github, Google, or Twitter.

abstract @NullableAuthCredential

Returns anAuthCredential instance which may be used to obtain the IDP accessToken and/or IDToken pertaining to a recently signed-in user.

abstract @NullableFirebaseUser

Returns the currently signed-inFirebaseUser, ornull if there isn't any (i.e. the user is signed out).

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

getAdditionalUserInfo

abstract @NullableAdditionalUserInfo getAdditionalUserInfo()

Returns IDP-specific information for the user if the provider is one of Facebook, Github, Google, or Twitter.

getCredential

abstract @NullableAuthCredential getCredential()

Returns anAuthCredential instance which may be used to obtain the IDP accessToken and/or IDToken pertaining to a recently signed-in user. May benull. For IDPs using OAuth, this will be an instance ofOAuthCredential.

getUser

abstract @NullableFirebaseUser getUser()

Returns the currently signed-inFirebaseUser, ornull if there isn't any (i.e. the user is signed out).

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.