summaryrefslogtreecommitdiff
path: root/frontend-old/node_modules/@firebase/auth/dist/test/helpers/integration
diff options
context:
space:
mode:
authoraltaf-creator <dev@altafcreator.com>2025-11-09 11:15:19 +0800
committeraltaf-creator <dev@altafcreator.com>2025-11-09 11:15:19 +0800
commit8eff962cab608341a6f2fedc640a0e32d96f26e2 (patch)
tree05534d1a720ddc3691d346c69b4972555820a061 /frontend-old/node_modules/@firebase/auth/dist/test/helpers/integration
pain
Diffstat (limited to 'frontend-old/node_modules/@firebase/auth/dist/test/helpers/integration')
-rw-r--r--frontend-old/node_modules/@firebase/auth/dist/test/helpers/integration/emulator_rest_helpers.d.ts35
-rw-r--r--frontend-old/node_modules/@firebase/auth/dist/test/helpers/integration/helpers.d.ts32
-rw-r--r--frontend-old/node_modules/@firebase/auth/dist/test/helpers/integration/settings.d.ts23
3 files changed, 90 insertions, 0 deletions
diff --git a/frontend-old/node_modules/@firebase/auth/dist/test/helpers/integration/emulator_rest_helpers.d.ts b/frontend-old/node_modules/@firebase/auth/dist/test/helpers/integration/emulator_rest_helpers.d.ts
new file mode 100644
index 0000000..832dc4f
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/auth/dist/test/helpers/integration/emulator_rest_helpers.d.ts
@@ -0,0 +1,35 @@
+/**
+ * @license
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+export interface VerificationSession {
+ code: string;
+ phoneNumber: string;
+ sessionInfo: string;
+}
+export interface OobCodeSession {
+ email: string;
+ requestType: string;
+ oobCode: string;
+ oobLink: string;
+}
+export declare function getPhoneVerificationCodes(): Promise<Record<string, VerificationSession>>;
+export declare function getOobCodes(): Promise<OobCodeSession[]>;
+export declare function resetEmulator(): Promise<void>;
+export declare function createAnonAccount(): Promise<{
+ localId: string;
+ idToken: string;
+ refreshToken: string;
+}>;
diff --git a/frontend-old/node_modules/@firebase/auth/dist/test/helpers/integration/helpers.d.ts b/frontend-old/node_modules/@firebase/auth/dist/test/helpers/integration/helpers.d.ts
new file mode 100644
index 0000000..86dfd0c
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/auth/dist/test/helpers/integration/helpers.d.ts
@@ -0,0 +1,32 @@
+/**
+ * @license
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { FirebaseServerApp } from '@firebase/app';
+import { Auth } from '@firebase/auth';
+export declare function randomEmail(): string;
+export declare function getTestInstance(requireEmulator?: boolean): Auth;
+export declare function getTestInstanceForServerApp(serverApp: FirebaseServerApp): Auth;
+export declare function cleanUpTestInstance(auth: Auth): Promise<void>;
+export declare function getTotpCode(sharedSecretKey: string, periodSec: number, verificationCodeLength: number, timestamp: Date): string;
+export declare const email = "totpuser-donotdelete@test.com";
+export declare const password = "password";
+export declare const incorrectTotpCode = "1000000";
+/**
+ * Generates a valid password for the project or tenant password policy in the Auth instance.
+ * @param auth The {@link Auth} instance.
+ * @returns A valid password according to the password policy.
+ */
+export declare function generateValidPassword(auth: Auth): Promise<string>;
diff --git a/frontend-old/node_modules/@firebase/auth/dist/test/helpers/integration/settings.d.ts b/frontend-old/node_modules/@firebase/auth/dist/test/helpers/integration/settings.d.ts
new file mode 100644
index 0000000..47aeeda
--- /dev/null
+++ b/frontend-old/node_modules/@firebase/auth/dist/test/helpers/integration/settings.d.ts
@@ -0,0 +1,23 @@
+/**
+ * @license
+ * Copyright 2020 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+import { FirebaseOptions } from '@firebase/app';
+export declare const USE_EMULATOR: boolean;
+export declare const PROJECT_ID: any;
+export declare const AUTH_DOMAIN: any;
+export declare const API_KEY: any;
+export declare function getAppConfig(): FirebaseOptions;
+export declare function getEmulatorUrl(): string | null;