firebase-admin 9.100.0-alpha.0 → 10.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -3
- package/lib/app/core.d.ts +15 -22
- package/lib/app/core.js +1 -1
- package/lib/app/credential-factory.d.ts +17 -33
- package/lib/app/credential-factory.js +17 -33
- package/lib/app/credential-internal.d.ts +10 -9
- package/lib/app/credential-internal.js +15 -13
- package/lib/app/credential.d.ts +3 -9
- package/lib/app/credential.js +1 -1
- package/lib/app/firebase-app.d.ts +6 -30
- package/lib/app/firebase-app.js +72 -216
- package/lib/app/firebase-namespace.d.ts +28 -34
- package/lib/app/firebase-namespace.js +119 -99
- package/lib/app/index.d.ts +6 -1
- package/lib/app/index.js +1 -1
- package/lib/app/lifecycle.d.ts +24 -3
- package/lib/app/lifecycle.js +119 -25
- package/lib/app-check/app-check-api-client-internal.d.ts +32 -0
- package/lib/app-check/app-check-api-client-internal.js +197 -0
- package/lib/app-check/app-check-api.d.ts +95 -0
- package/lib/app-check/app-check-api.js +19 -0
- package/lib/app-check/app-check-namespace.d.ts +65 -0
- package/lib/app-check/app-check-namespace.js +18 -0
- package/lib/app-check/app-check.d.ts +49 -0
- package/lib/app-check/app-check.js +82 -0
- package/lib/app-check/index.d.ts +53 -0
- package/lib/app-check/index.js +63 -0
- package/lib/app-check/token-generator.d.ts +25 -0
- package/lib/app-check/token-generator.js +159 -0
- package/lib/app-check/token-verifier.d.ts +17 -0
- package/lib/app-check/token-verifier.js +151 -0
- package/lib/auth/action-code-settings-builder.d.ts +1 -1
- package/lib/auth/action-code-settings-builder.js +2 -2
- package/lib/auth/auth-api-request.d.ts +28 -32
- package/lib/auth/auth-api-request.js +167 -125
- package/lib/auth/auth-config.d.ts +123 -21
- package/lib/auth/auth-config.js +85 -34
- package/lib/auth/auth-namespace.d.ts +157 -4
- package/lib/auth/auth-namespace.js +1 -1
- package/lib/auth/auth.d.ts +5 -3
- package/lib/auth/auth.js +6 -4
- package/lib/auth/base-auth.d.ts +134 -116
- package/lib/auth/base-auth.js +213 -143
- package/lib/auth/identifier.d.ts +5 -5
- package/lib/auth/identifier.js +1 -1
- package/lib/auth/index.d.ts +10 -5
- package/lib/auth/index.js +9 -4
- package/lib/auth/tenant-manager.d.ts +19 -19
- package/lib/auth/tenant-manager.js +21 -25
- package/lib/auth/tenant.d.ts +14 -5
- package/lib/auth/tenant.js +19 -11
- package/lib/auth/token-generator.d.ts +7 -108
- package/lib/auth/token-generator.js +52 -145
- package/lib/auth/token-verifier.d.ts +3 -4
- package/lib/auth/token-verifier.js +96 -145
- package/lib/auth/user-import-builder.d.ts +11 -11
- package/lib/auth/user-import-builder.js +9 -9
- package/lib/auth/user-record.d.ts +23 -15
- package/lib/auth/user-record.js +30 -20
- package/lib/credential/index.d.ts +18 -35
- package/lib/credential/index.js +17 -33
- package/lib/database/database-namespace.d.ts +39 -10
- package/lib/database/database-namespace.js +1 -1
- package/lib/database/database.d.ts +16 -6
- package/lib/database/database.js +61 -6
- package/lib/database/index.d.ts +19 -18
- package/lib/database/index.js +21 -23
- package/lib/default-namespace.d.ts +7 -1
- package/lib/default-namespace.js +4 -4
- package/lib/esm/app/index.js +10 -0
- package/lib/esm/app-check/index.js +4 -0
- package/lib/esm/auth/index.js +14 -0
- package/lib/esm/database/index.js +6 -0
- package/lib/esm/firestore/index.js +24 -0
- package/lib/esm/installations/index.js +4 -0
- package/lib/esm/instance-id/index.js +4 -0
- package/lib/esm/machine-learning/index.js +5 -0
- package/lib/esm/messaging/index.js +4 -0
- package/lib/esm/package.json +1 -0
- package/lib/esm/project-management/index.js +8 -0
- package/lib/esm/remote-config/index.js +4 -0
- package/lib/esm/security-rules/index.js +6 -0
- package/lib/esm/storage/index.js +4 -0
- package/lib/firebase-namespace-api.d.ts +12 -6
- package/lib/firebase-namespace-api.js +5 -1
- package/lib/firestore/firestore-internal.d.ts +2 -2
- package/lib/firestore/firestore-internal.js +2 -2
- package/lib/firestore/firestore-namespace.d.ts +6 -1
- package/lib/firestore/firestore-namespace.js +2 -1
- package/lib/firestore/index.d.ts +36 -4
- package/lib/firestore/index.js +29 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/installations/index.d.ts +52 -0
- package/lib/installations/index.js +62 -0
- package/lib/installations/installations-namespace.d.ts +55 -0
- package/lib/installations/installations-namespace.js +18 -0
- package/lib/{instance-id/instance-id-request-internal.d.ts → installations/installations-request-handler.d.ts} +8 -8
- package/lib/{instance-id/instance-id-request-internal.js → installations/installations-request-handler.js} +23 -23
- package/lib/installations/installations.d.ts +38 -0
- package/lib/installations/installations.js +63 -0
- package/lib/instance-id/index.d.ts +20 -9
- package/lib/instance-id/index.js +20 -9
- package/lib/instance-id/instance-id-namespace.d.ts +9 -8
- package/lib/instance-id/instance-id-namespace.js +1 -1
- package/lib/instance-id/instance-id.d.ts +8 -6
- package/lib/instance-id/instance-id.js +20 -11
- package/lib/machine-learning/index.d.ts +29 -27
- package/lib/machine-learning/index.js +29 -27
- package/lib/machine-learning/machine-learning-api-client.d.ts +1 -1
- package/lib/machine-learning/machine-learning-api-client.js +4 -4
- package/lib/machine-learning/machine-learning-namespace.d.ts +33 -8
- package/lib/machine-learning/machine-learning-namespace.js +1 -1
- package/lib/machine-learning/machine-learning-utils.d.ts +1 -1
- package/lib/machine-learning/machine-learning-utils.js +1 -1
- package/lib/machine-learning/machine-learning.d.ts +19 -19
- package/lib/machine-learning/machine-learning.js +20 -20
- package/lib/messaging/batch-request-internal.d.ts +3 -3
- package/lib/messaging/batch-request-internal.js +9 -9
- package/lib/messaging/index.d.ts +11 -9
- package/lib/messaging/index.js +11 -9
- package/lib/messaging/messaging-api-request-internal.d.ts +8 -8
- package/lib/messaging/messaging-api-request-internal.js +8 -8
- package/lib/messaging/messaging-api.d.ts +79 -75
- package/lib/messaging/messaging-api.js +1 -1
- package/lib/messaging/messaging-errors-internal.d.ts +5 -5
- package/lib/messaging/messaging-errors-internal.js +7 -7
- package/lib/messaging/messaging-internal.d.ts +1 -1
- package/lib/messaging/messaging-internal.js +6 -31
- package/lib/messaging/messaging-namespace.d.ts +105 -8
- package/lib/messaging/messaging-namespace.js +1 -1
- package/lib/messaging/messaging.d.ts +70 -86
- package/lib/messaging/messaging.js +76 -89
- package/lib/project-management/android-app.d.ts +11 -12
- package/lib/project-management/android-app.js +13 -14
- package/lib/project-management/app-metadata.d.ts +1 -1
- package/lib/project-management/app-metadata.js +1 -1
- package/lib/project-management/index.d.ts +11 -9
- package/lib/project-management/index.js +11 -9
- package/lib/project-management/ios-app.d.ts +6 -7
- package/lib/project-management/ios-app.js +6 -7
- package/lib/project-management/project-management-api-request-internal.d.ts +1 -80
- package/lib/project-management/project-management-api-request-internal.js +14 -14
- package/lib/project-management/project-management-namespace.d.ts +31 -9
- package/lib/project-management/project-management-namespace.js +1 -1
- package/lib/project-management/project-management.d.ts +18 -21
- package/lib/project-management/project-management.js +19 -22
- package/lib/remote-config/index.d.ts +12 -10
- package/lib/remote-config/index.js +11 -9
- package/lib/remote-config/remote-config-api-client-internal.d.ts +1 -1
- package/lib/remote-config/remote-config-api-client-internal.js +2 -2
- package/lib/remote-config/remote-config-api.d.ts +12 -2
- package/lib/remote-config/remote-config-api.js +1 -1
- package/lib/remote-config/remote-config-namespace.d.ts +50 -9
- package/lib/remote-config/remote-config-namespace.js +1 -1
- package/lib/remote-config/remote-config.d.ts +19 -21
- package/lib/remote-config/remote-config.js +25 -25
- package/lib/security-rules/index.d.ts +12 -10
- package/lib/security-rules/index.js +12 -10
- package/lib/security-rules/security-rules-api-client-internal.d.ts +1 -1
- package/lib/security-rules/security-rules-api-client-internal.js +1 -1
- package/lib/security-rules/security-rules-internal.d.ts +1 -1
- package/lib/security-rules/security-rules-internal.js +1 -1
- package/lib/security-rules/security-rules-namespace.d.ts +43 -28
- package/lib/security-rules/security-rules-namespace.js +1 -1
- package/lib/security-rules/security-rules.d.ts +39 -42
- package/lib/security-rules/security-rules.js +38 -39
- package/lib/storage/index.d.ts +9 -7
- package/lib/storage/index.js +9 -7
- package/lib/storage/storage-namespace.d.ts +7 -6
- package/lib/storage/storage-namespace.js +1 -1
- package/lib/storage/storage.d.ts +3 -3
- package/lib/storage/storage.js +14 -4
- package/lib/utils/api-request.d.ts +24 -24
- package/lib/utils/api-request.js +25 -25
- package/lib/utils/crypto-signer.d.ts +128 -0
- package/lib/utils/crypto-signer.js +237 -0
- package/lib/utils/deep-copy.d.ts +6 -6
- package/lib/utils/deep-copy.js +6 -6
- package/lib/utils/error.d.ts +69 -36
- package/lib/utils/error.js +98 -43
- package/lib/utils/index.d.ts +30 -19
- package/lib/utils/index.js +47 -20
- package/lib/utils/jwt.d.ts +131 -0
- package/lib/utils/jwt.js +355 -0
- package/lib/utils/validator.d.ts +37 -37
- package/lib/utils/validator.js +37 -37
- package/package.json +126 -53
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! firebase-admin
|
|
1
|
+
/*! firebase-admin v10.0.2 */
|
|
2
2
|
/*!
|
|
3
3
|
* Copyright 2021 Google Inc.
|
|
4
4
|
*
|
|
@@ -26,12 +26,12 @@ import { DecodedIdToken as TDecodedIdToken } from './token-verifier';
|
|
|
26
26
|
import { HashAlgorithmType as THashAlgorithmType, UserImportOptions as TUserImportOptions, UserImportRecord as TUserImportRecord, UserImportResult as TUserImportResult, UserMetadataRequest as TUserMetadataRequest, UserProviderRequest as TUserProviderRequest } from './user-import-builder';
|
|
27
27
|
import { MultiFactorInfo as TMultiFactorInfo, MultiFactorSettings as TMultiFactorSettings, PhoneMultiFactorInfo as TPhoneMultiFactorInfo, UserInfo as TUserInfo, UserMetadata as TUserMetadata, UserRecord as TUserRecord } from './user-record';
|
|
28
28
|
/**
|
|
29
|
-
* Gets the {@link auth
|
|
29
|
+
* Gets the {@link firebase-admin.auth#Auth} service for the default app or a
|
|
30
30
|
* given app.
|
|
31
31
|
*
|
|
32
32
|
* `admin.auth()` can be called with no arguments to access the default app's
|
|
33
|
-
* {@link auth
|
|
34
|
-
* {@link auth
|
|
33
|
+
* {@link firebase-admin.auth#Auth} service or as `admin.auth(app)` to access the
|
|
34
|
+
* {@link firebase-admin.auth#Auth} service associated with a specific app.
|
|
35
35
|
*
|
|
36
36
|
* @example
|
|
37
37
|
* ```javascript
|
|
@@ -48,55 +48,208 @@ import { MultiFactorInfo as TMultiFactorInfo, MultiFactorSettings as TMultiFacto
|
|
|
48
48
|
*/
|
|
49
49
|
export declare function auth(app?: App): auth.Auth;
|
|
50
50
|
export declare namespace auth {
|
|
51
|
+
/**
|
|
52
|
+
* Type alias to {@link firebase-admin.auth#ActionCodeSettings}.
|
|
53
|
+
*/
|
|
51
54
|
type ActionCodeSettings = TActionCodeSettings;
|
|
55
|
+
/**
|
|
56
|
+
* Type alias to {@link firebase-admin.auth#Auth}.
|
|
57
|
+
*/
|
|
52
58
|
type Auth = TAuth;
|
|
59
|
+
/**
|
|
60
|
+
* Type alias to {@link firebase-admin.auth#AuthFactorType}.
|
|
61
|
+
*/
|
|
53
62
|
type AuthFactorType = TAuthFactorType;
|
|
63
|
+
/**
|
|
64
|
+
* Type alias to {@link firebase-admin.auth#AuthProviderConfig}.
|
|
65
|
+
*/
|
|
54
66
|
type AuthProviderConfig = TAuthProviderConfig;
|
|
67
|
+
/**
|
|
68
|
+
* Type alias to {@link firebase-admin.auth#AuthProviderConfigFilter}.
|
|
69
|
+
*/
|
|
55
70
|
type AuthProviderConfigFilter = TAuthProviderConfigFilter;
|
|
71
|
+
/**
|
|
72
|
+
* Type alias to {@link firebase-admin.auth#BaseAuth}.
|
|
73
|
+
*/
|
|
56
74
|
type BaseAuth = TBaseAuth;
|
|
75
|
+
/**
|
|
76
|
+
* Type alias to {@link firebase-admin.auth#CreateMultiFactorInfoRequest}.
|
|
77
|
+
*/
|
|
57
78
|
type CreateMultiFactorInfoRequest = TCreateMultiFactorInfoRequest;
|
|
79
|
+
/**
|
|
80
|
+
* Type alias to {@link firebase-admin.auth#CreatePhoneMultiFactorInfoRequest}.
|
|
81
|
+
*/
|
|
58
82
|
type CreatePhoneMultiFactorInfoRequest = TCreatePhoneMultiFactorInfoRequest;
|
|
83
|
+
/**
|
|
84
|
+
* Type alias to {@link firebase-admin.auth#CreateRequest}.
|
|
85
|
+
*/
|
|
59
86
|
type CreateRequest = TCreateRequest;
|
|
87
|
+
/**
|
|
88
|
+
* Type alias to {@link firebase-admin.auth#CreateTenantRequest}.
|
|
89
|
+
*/
|
|
60
90
|
type CreateTenantRequest = TCreateTenantRequest;
|
|
91
|
+
/**
|
|
92
|
+
* Type alias to {@link firebase-admin.auth#DecodedIdToken}.
|
|
93
|
+
*/
|
|
61
94
|
type DecodedIdToken = TDecodedIdToken;
|
|
95
|
+
/**
|
|
96
|
+
* Type alias to {@link firebase-admin.auth#DeleteUsersResult}.
|
|
97
|
+
*/
|
|
62
98
|
type DeleteUsersResult = TDeleteUsersResult;
|
|
99
|
+
/**
|
|
100
|
+
* Type alias to {@link firebase-admin.auth#EmailIdentifier}.
|
|
101
|
+
*/
|
|
63
102
|
type EmailIdentifier = TEmailIdentifier;
|
|
103
|
+
/**
|
|
104
|
+
* Type alias to {@link firebase-admin.auth#EmailSignInProviderConfig}.
|
|
105
|
+
*/
|
|
64
106
|
type EmailSignInProviderConfig = TEmailSignInProviderConfig;
|
|
107
|
+
/**
|
|
108
|
+
* Type alias to {@link firebase-admin.auth#GetUsersResult}.
|
|
109
|
+
*/
|
|
65
110
|
type GetUsersResult = TGetUsersResult;
|
|
111
|
+
/**
|
|
112
|
+
* Type alias to {@link firebase-admin.auth#HashAlgorithmType}.
|
|
113
|
+
*/
|
|
66
114
|
type HashAlgorithmType = THashAlgorithmType;
|
|
115
|
+
/**
|
|
116
|
+
* Type alias to {@link firebase-admin.auth#ListProviderConfigResults}.
|
|
117
|
+
*/
|
|
67
118
|
type ListProviderConfigResults = TListProviderConfigResults;
|
|
119
|
+
/**
|
|
120
|
+
* Type alias to {@link firebase-admin.auth#ListTenantsResult}.
|
|
121
|
+
*/
|
|
68
122
|
type ListTenantsResult = TListTenantsResult;
|
|
123
|
+
/**
|
|
124
|
+
* Type alias to {@link firebase-admin.auth#ListUsersResult}.
|
|
125
|
+
*/
|
|
69
126
|
type ListUsersResult = TListUsersResult;
|
|
127
|
+
/**
|
|
128
|
+
* Type alias to {@link firebase-admin.auth#MultiFactorCreateSettings}.
|
|
129
|
+
*/
|
|
70
130
|
type MultiFactorCreateSettings = TMultiFactorCreateSettings;
|
|
131
|
+
/**
|
|
132
|
+
* Type alias to {@link firebase-admin.auth#MultiFactorConfig}.
|
|
133
|
+
*/
|
|
71
134
|
type MultiFactorConfig = TMultiFactorConfig;
|
|
135
|
+
/**
|
|
136
|
+
* Type alias to {@link firebase-admin.auth#MultiFactorConfigState}.
|
|
137
|
+
*/
|
|
72
138
|
type MultiFactorConfigState = TMultiFactorConfigState;
|
|
139
|
+
/**
|
|
140
|
+
* Type alias to {@link firebase-admin.auth#MultiFactorInfo}.
|
|
141
|
+
*/
|
|
73
142
|
type MultiFactorInfo = TMultiFactorInfo;
|
|
143
|
+
/**
|
|
144
|
+
* Type alias to {@link firebase-admin.auth#MultiFactorUpdateSettings}.
|
|
145
|
+
*/
|
|
74
146
|
type MultiFactorUpdateSettings = TMultiFactorUpdateSettings;
|
|
147
|
+
/**
|
|
148
|
+
* Type alias to {@link firebase-admin.auth#MultiFactorSettings}.
|
|
149
|
+
*/
|
|
75
150
|
type MultiFactorSettings = TMultiFactorSettings;
|
|
151
|
+
/**
|
|
152
|
+
* Type alias to {@link firebase-admin.auth#OIDCAuthProviderConfig}.
|
|
153
|
+
*/
|
|
76
154
|
type OIDCAuthProviderConfig = TOIDCAuthProviderConfig;
|
|
155
|
+
/**
|
|
156
|
+
* Type alias to {@link firebase-admin.auth#OIDCUpdateAuthProviderRequest}.
|
|
157
|
+
*/
|
|
77
158
|
type OIDCUpdateAuthProviderRequest = TOIDCUpdateAuthProviderRequest;
|
|
159
|
+
/**
|
|
160
|
+
* Type alias to {@link firebase-admin.auth#PhoneIdentifier}.
|
|
161
|
+
*/
|
|
78
162
|
type PhoneIdentifier = TPhoneIdentifier;
|
|
163
|
+
/**
|
|
164
|
+
* Type alias to {@link firebase-admin.auth#PhoneMultiFactorInfo}.
|
|
165
|
+
*/
|
|
79
166
|
type PhoneMultiFactorInfo = TPhoneMultiFactorInfo;
|
|
167
|
+
/**
|
|
168
|
+
* Type alias to {@link firebase-admin.auth#ProviderIdentifier}.
|
|
169
|
+
*/
|
|
80
170
|
type ProviderIdentifier = TProviderIdentifier;
|
|
171
|
+
/**
|
|
172
|
+
* Type alias to {@link firebase-admin.auth#SAMLAuthProviderConfig}.
|
|
173
|
+
*/
|
|
81
174
|
type SAMLAuthProviderConfig = TSAMLAuthProviderConfig;
|
|
175
|
+
/**
|
|
176
|
+
* Type alias to {@link firebase-admin.auth#SAMLUpdateAuthProviderRequest}.
|
|
177
|
+
*/
|
|
82
178
|
type SAMLUpdateAuthProviderRequest = TSAMLUpdateAuthProviderRequest;
|
|
179
|
+
/**
|
|
180
|
+
* Type alias to {@link firebase-admin.auth#SessionCookieOptions}.
|
|
181
|
+
*/
|
|
83
182
|
type SessionCookieOptions = TSessionCookieOptions;
|
|
183
|
+
/**
|
|
184
|
+
* Type alias to {@link firebase-admin.auth#Tenant}.
|
|
185
|
+
*/
|
|
84
186
|
type Tenant = TTenant;
|
|
187
|
+
/**
|
|
188
|
+
* Type alias to {@link firebase-admin.auth#TenantAwareAuth}.
|
|
189
|
+
*/
|
|
85
190
|
type TenantAwareAuth = TTenantAwareAuth;
|
|
191
|
+
/**
|
|
192
|
+
* Type alias to {@link firebase-admin.auth#TenantManager}.
|
|
193
|
+
*/
|
|
86
194
|
type TenantManager = TTenantManager;
|
|
195
|
+
/**
|
|
196
|
+
* Type alias to {@link firebase-admin.auth#UidIdentifier}.
|
|
197
|
+
*/
|
|
87
198
|
type UidIdentifier = TUidIdentifier;
|
|
199
|
+
/**
|
|
200
|
+
* Type alias to {@link firebase-admin.auth#UpdateAuthProviderRequest}.
|
|
201
|
+
*/
|
|
88
202
|
type UpdateAuthProviderRequest = TUpdateAuthProviderRequest;
|
|
203
|
+
/**
|
|
204
|
+
* Type alias to {@link firebase-admin.auth#UpdateMultiFactorInfoRequest}.
|
|
205
|
+
*/
|
|
89
206
|
type UpdateMultiFactorInfoRequest = TUpdateMultiFactorInfoRequest;
|
|
207
|
+
/**
|
|
208
|
+
* Type alias to {@link firebase-admin.auth#UpdatePhoneMultiFactorInfoRequest}.
|
|
209
|
+
*/
|
|
90
210
|
type UpdatePhoneMultiFactorInfoRequest = TUpdatePhoneMultiFactorInfoRequest;
|
|
211
|
+
/**
|
|
212
|
+
* Type alias to {@link firebase-admin.auth#UpdateRequest}.
|
|
213
|
+
*/
|
|
91
214
|
type UpdateRequest = TUpdateRequest;
|
|
215
|
+
/**
|
|
216
|
+
* Type alias to {@link firebase-admin.auth#UpdateTenantRequest}.
|
|
217
|
+
*/
|
|
92
218
|
type UpdateTenantRequest = TUpdateTenantRequest;
|
|
219
|
+
/**
|
|
220
|
+
* Type alias to {@link firebase-admin.auth#UserIdentifier}.
|
|
221
|
+
*/
|
|
93
222
|
type UserIdentifier = TUserIdentifier;
|
|
223
|
+
/**
|
|
224
|
+
* Type alias to {@link firebase-admin.auth#UserImportOptions}.
|
|
225
|
+
*/
|
|
94
226
|
type UserImportOptions = TUserImportOptions;
|
|
227
|
+
/**
|
|
228
|
+
* Type alias to {@link firebase-admin.auth#UserImportRecord}.
|
|
229
|
+
*/
|
|
95
230
|
type UserImportRecord = TUserImportRecord;
|
|
231
|
+
/**
|
|
232
|
+
* Type alias to {@link firebase-admin.auth#UserImportResult}.
|
|
233
|
+
*/
|
|
96
234
|
type UserImportResult = TUserImportResult;
|
|
235
|
+
/**
|
|
236
|
+
* Type alias to {@link firebase-admin.auth#UserInfo}.
|
|
237
|
+
*/
|
|
97
238
|
type UserInfo = TUserInfo;
|
|
239
|
+
/**
|
|
240
|
+
* Type alias to {@link firebase-admin.auth#UserMetadata}.
|
|
241
|
+
*/
|
|
98
242
|
type UserMetadata = TUserMetadata;
|
|
243
|
+
/**
|
|
244
|
+
* Type alias to {@link firebase-admin.auth#UserMetadataRequest}.
|
|
245
|
+
*/
|
|
99
246
|
type UserMetadataRequest = TUserMetadataRequest;
|
|
247
|
+
/**
|
|
248
|
+
* Type alias to {@link firebase-admin.auth#UserProviderRequest}.
|
|
249
|
+
*/
|
|
100
250
|
type UserProviderRequest = TUserProviderRequest;
|
|
251
|
+
/**
|
|
252
|
+
* Type alias to {@link firebase-admin.auth#UserRecord}.
|
|
253
|
+
*/
|
|
101
254
|
type UserRecord = TUserRecord;
|
|
102
255
|
}
|
package/lib/auth/auth.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! firebase-admin
|
|
1
|
+
/*! firebase-admin v10.0.2 */
|
|
2
2
|
/*!
|
|
3
3
|
* @license
|
|
4
4
|
* Copyright 2017 Google Inc.
|
|
@@ -28,11 +28,13 @@ export declare class Auth extends BaseAuth {
|
|
|
28
28
|
/**
|
|
29
29
|
* Returns the app associated with this Auth instance.
|
|
30
30
|
*
|
|
31
|
-
* @
|
|
31
|
+
* @returns The app associated with this Auth instance.
|
|
32
32
|
*/
|
|
33
33
|
get app(): App;
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Returns the tenant manager instance associated with the current project.
|
|
36
|
+
*
|
|
37
|
+
* @returns The tenant manager instance associated with the current project.
|
|
36
38
|
*/
|
|
37
39
|
tenantManager(): TenantManager;
|
|
38
40
|
}
|
package/lib/auth/auth.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! firebase-admin
|
|
1
|
+
/*! firebase-admin v10.0.2 */
|
|
2
2
|
"use strict";
|
|
3
3
|
/*!
|
|
4
4
|
* @license
|
|
@@ -41,7 +41,7 @@ var base_auth_1 = require("./base-auth");
|
|
|
41
41
|
var Auth = /** @class */ (function (_super) {
|
|
42
42
|
__extends(Auth, _super);
|
|
43
43
|
/**
|
|
44
|
-
* @param app The app for this Auth service.
|
|
44
|
+
* @param app - The app for this Auth service.
|
|
45
45
|
* @constructor
|
|
46
46
|
* @internal
|
|
47
47
|
*/
|
|
@@ -55,7 +55,7 @@ var Auth = /** @class */ (function (_super) {
|
|
|
55
55
|
/**
|
|
56
56
|
* Returns the app associated with this Auth instance.
|
|
57
57
|
*
|
|
58
|
-
* @
|
|
58
|
+
* @returns The app associated with this Auth instance.
|
|
59
59
|
*/
|
|
60
60
|
get: function () {
|
|
61
61
|
return this.app_;
|
|
@@ -64,7 +64,9 @@ var Auth = /** @class */ (function (_super) {
|
|
|
64
64
|
configurable: true
|
|
65
65
|
});
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
67
|
+
* Returns the tenant manager instance associated with the current project.
|
|
68
|
+
*
|
|
69
|
+
* @returns The tenant manager instance associated with the current project.
|
|
68
70
|
*/
|
|
69
71
|
Auth.prototype.tenantManager = function () {
|
|
70
72
|
return this.tenantManager_;
|