UNPKG

1.71 kBTypeScriptView Raw
1/*! firebase-admin v12.0.0 */
2/*!
3 * @license
4 * Copyright 2017 Google Inc.
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 */
18import { App } from '../app/index';
19import { TenantManager } from './tenant-manager';
20import { BaseAuth } from './base-auth';
21import { ProjectConfigManager } from './project-config-manager';
22/**
23 * Auth service bound to the provided app.
24 * An Auth instance can have multiple tenants.
25 */
26export declare class Auth extends BaseAuth {
27 private readonly tenantManager_;
28 private readonly projectConfigManager_;
29 private readonly app_;
30 /**
31 * Returns the app associated with this Auth instance.
32 *
33 * @returns The app associated with this Auth instance.
34 */
35 get app(): App;
36 /**
37 * Returns the tenant manager instance associated with the current project.
38 *
39 * @returns The tenant manager instance associated with the current project.
40 */
41 tenantManager(): TenantManager;
42 /**
43 * Returns the project config manager instance associated with the current project.
44 *
45 * @returns The project config manager instance associated with the current project.
46 */
47 projectConfigManager(): ProjectConfigManager;
48}