콘솔로 이동

Callable

  • auth(app?: App): 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.

    example
    
    // Get the Auth service for the default app
    var defaultAuth = firebase.auth();
    example
    
    // Get the Auth service for a given app
    var otherAuth = firebase.auth(otherApp);

    Parameters

    • Optional app: App

    Returns Auth

Index