Provides an interface for internal clients of Firebase Authentication to get an access token for a signed-in user.
| abstract void | |
| abstract Task<GetTokenResult> |
getAccessToken(boolean forceRefresh)
|
| abstract String |
getUid()
|
| abstract void |
Adds an IdTokenListener
to the list of interested listeners. Also indicates that you need a fresh
IdToken at all times, turning on Proactive Token Refreshing. Unlike the public method,
this method does not trigger immediately when added.
| listener | represents the IdTokenListener
that should be notified when the user state changes. |
|---|
Fetches a valid STS Token.
| forceRefresh | force refreshes the token. Should only be set to true if the token
is invalidated out of band. |
|---|
TaskReturns a string used to uniquely identify a signed-in user in a Firebase project's user database.
This identifier is opaque and does not correspond necessarily to the user's email address or any other field.
uid. Returns null if FirebaseAuth
is not added to the Firebase project, or if there is not a currently signed-in
user.Removes an IdTokenListener
from the list of interested listeners.
| listenerToRemove | represents the instance of IdTokenListener
to be removed. |
|---|