Go to console

Callable

  • Gets the Auth service for the default app or a given app.

    admin.auth() can be called with no arguments to access the default app's Auth service or as admin.auth(app) to access the Auth service associated with a specific app.

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

    Parameters