Callable

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

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

    example
    // Get the SecurityRules service for the default app
    var defaultSecurityRules = admin.securityRules();
    example
    // Get the SecurityRules service for a given app
    var otherSecurityRules = admin.securityRules(otherApp);

    Parameters

    • Optional app: App

      Optional app to return the SecurityRules service for. If not provided, the default SecurityRules service is returned.

    Returns SecurityRules

    The default SecurityRules service if no app is provided, or the SecurityRules service associated with the provided app.

Index