कंसोल पर जाएं

FirebaseAuth

public abstract class FirebaseAuth extends Object

The entry point of the Firebase Authentication SDK.

First, obtain an instance of this class by calling getInstance().

Then, sign up or sign in a user with one of the following methods:

Finally, call getCurrentUser() to get a FirebaseUser object, which contains information about the signed-in user.

Nested Class Summary

interface FirebaseAuth.AuthStateListener Listener called when there is a change in the authentication state. 
interface FirebaseAuth.IdTokenListener Listener called when the id token is changed. 

Public Method Summary

void
addAuthStateListener(FirebaseAuth.AuthStateListener listener)
Registers a listener to changes in the user authentication state.
void
addIdTokenListener(FirebaseAuth.IdTokenListener listener)
Registers a listener to changes in the token authentication state.
Task<Void>