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

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

    Parameters

    • Optional app: App

    Returns Auth

    Example

    // Get the Auth service for the default app
    const defaultAuth = getAuth();

    Example

    // Get the Auth service for a given app
    const otherAuth = getAuth(otherApp);