firebase. auth
auth
auth(app) returns firebase.auth.Auth
Gets the Auth service for the default app or a given app.
firebase.auth() can be called with no arguments to access the default app's
Auth service or as firebase.auth(app) to access the Auth service associated with a specific app.
Parameter |
|
|---|---|
|
app |
Optional Value must not be null. |
- Returns
-
non-null firebase.auth.Auth
Examples
// Get the Auth service for the default app
var defaultAuth = firebase.auth();
// Get the Auth service for a given app
var otherAuth = firebase.auth(otherApp);
Classes
EmailAuthProvider
Email and password auth provider implementation.
To authenticate: firebase.auth.Auth#createUserWithEmailAndPassword and firebase.auth.Auth#signInWithEmailAndPassword.
FacebookAuthProvider
Facebook auth provider.
GithubAuthProvider
Github auth provider.
GitHub requires an OAuth 2.0 redirect, so you can either handle the redirect directly, or use the signInWithPopup handler:
GoogleAuthProvider
Google auth provider.
TwitterAuthProvider
Twitter auth provider.
Interfaces
ActionCodeInfo
Auth
AuthCredential
AuthProvider
Error
Abstract type
UserCredential
{user: nullable firebase.User, credential: nullable firebase.auth.AuthCredential}
A structure containing a User and an AuthCredential.

