diff options
| author | altaf-creator <dev@altafcreator.com> | 2025-11-09 11:15:19 +0800 |
|---|---|---|
| committer | altaf-creator <dev@altafcreator.com> | 2025-11-09 11:15:19 +0800 |
| commit | 8eff962cab608341a6f2fedc640a0e32d96f26e2 (patch) | |
| tree | 05534d1a720ddc3691d346c69b4972555820a061 /frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src | |
pain
Diffstat (limited to 'frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src')
11 files changed, 375 insertions, 0 deletions
diff --git a/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/auth.d.ts b/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/auth.d.ts new file mode 100644 index 0000000..9a838dd --- /dev/null +++ b/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/auth.d.ts @@ -0,0 +1,72 @@ +/** + * @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 { FirebaseApp, _FirebaseService } from '@firebase/app-compat'; +import * as exp from '@firebase/auth/internal'; +import * as compat from '@firebase/auth-types'; +import { Provider } from '@firebase/component'; +import { Observer, Unsubscribe } from '@firebase/util'; +import { Wrapper } from './wrap'; +export declare class Auth implements compat.FirebaseAuth, Wrapper<exp.Auth>, _FirebaseService { + readonly app: FirebaseApp; + static Persistence: { + LOCAL: string; + NONE: string; + SESSION: string; + }; + readonly _delegate: exp.AuthImpl; + constructor(app: FirebaseApp, provider: Provider<'auth'>); + get emulatorConfig(): compat.EmulatorConfig | null; + get currentUser(): compat.User | null; + get languageCode(): string | null; + set languageCode(languageCode: string | null); + get settings(): compat.AuthSettings; + get tenantId(): string | null; + set tenantId(tid: string | null); + useDeviceLanguage(): void; + signOut(): Promise<void>; + useEmulator(url: string, options?: { + disableWarnings: boolean; + }): void; + applyActionCode(code: string): Promise<void>; + checkActionCode(code: string): Promise<compat.ActionCodeInfo>; + confirmPasswordReset(code: string, newPassword: string): Promise<void>; + createUserWithEmailAndPassword(email: string, password: string): Promise<compat.UserCredential>; + fetchProvidersForEmail(email: string): Promise<string[]>; + fetchSignInMethodsForEmail(email: string): Promise<string[]>; + isSignInWithEmailLink(emailLink: string): boolean; + getRedirectResult(): Promise<compat.UserCredential>; + addFrameworkForLogging(framework: string): void; + onAuthStateChanged(nextOrObserver: Observer<unknown> | ((a: compat.User | null) => unknown), errorFn?: (error: compat.Error) => unknown, completed?: Unsubscribe): Unsubscribe; + onIdTokenChanged(nextOrObserver: Observer<unknown> | ((a: compat.User | null) => unknown), errorFn?: (error: compat.Error) => unknown, completed?: Unsubscribe): Unsubscribe; + sendSignInLinkToEmail(email: string, actionCodeSettings: compat.ActionCodeSettings): Promise<void>; + sendPasswordResetEmail(email: string, actionCodeSettings?: compat.ActionCodeSettings | null): Promise<void>; + setPersistence(persistence: string): Promise<void>; + signInAndRetrieveDataWithCredential(credential: compat.AuthCredential): Promise<compat.UserCredential>; + signInAnonymously(): Promise<compat.UserCredential>; + signInWithCredential(credential: compat.AuthCredential): Promise<compat.UserCredential>; + signInWithCustomToken(token: string): Promise<compat.UserCredential>; + signInWithEmailAndPassword(email: string, password: string): Promise<compat.UserCredential>; + signInWithEmailLink(email: string, emailLink?: string): Promise<compat.UserCredential>; + signInWithPhoneNumber(phoneNumber: string, applicationVerifier: compat.ApplicationVerifier): Promise<compat.ConfirmationResult>; + signInWithPopup(provider: compat.AuthProvider): Promise<compat.UserCredential>; + signInWithRedirect(provider: compat.AuthProvider): Promise<void>; + updateCurrentUser(user: compat.User | null): Promise<void>; + verifyPasswordResetCode(code: string): Promise<string>; + unwrap(): exp.Auth; + _delete(): Promise<void>; + private linkUnderlyingAuth; +} diff --git a/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/auth.test.d.ts b/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/auth.test.d.ts new file mode 100644 index 0000000..731d2d9 --- /dev/null +++ b/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/auth.test.d.ts @@ -0,0 +1,17 @@ +/** + * @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 {}; diff --git a/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/persistence.d.ts b/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/persistence.d.ts new file mode 100644 index 0000000..354f8d0 --- /dev/null +++ b/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/persistence.d.ts @@ -0,0 +1,29 @@ +/** + * @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 * as exp from '@firebase/auth/internal'; +export declare const Persistence: { + LOCAL: string; + NONE: string; + SESSION: string; +}; +/** + * Validates that an argument is a valid persistence value. If an invalid type + * is specified, an error is thrown synchronously. + */ +export declare function _validatePersistenceArgument(auth: exp.Auth, persistence: string): void; +export declare function _savePersistenceForRedirect(auth: exp.AuthInternal): Promise<void>; +export declare function _getPersistencesFromRedirect(apiKey: string, appName: string): exp.Persistence[]; diff --git a/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/phone_auth_provider.d.ts b/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/phone_auth_provider.d.ts new file mode 100644 index 0000000..17318cf --- /dev/null +++ b/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/phone_auth_provider.d.ts @@ -0,0 +1,29 @@ +/** + * @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 * as exp from '@firebase/auth/internal'; +import * as compat from '@firebase/auth-types'; +import { Compat } from '@firebase/util'; +export declare class PhoneAuthProvider implements compat.PhoneAuthProvider, Compat<exp.PhoneAuthProvider> { + providerId: string; + readonly _delegate: exp.PhoneAuthProvider; + static PHONE_SIGN_IN_METHOD: "phone"; + static PROVIDER_ID: "phone"; + static credential(verificationId: string, verificationCode: string): compat.AuthCredential; + constructor(); + verifyPhoneNumber(phoneInfoOptions: string | compat.PhoneSingleFactorInfoOptions | compat.PhoneMultiFactorEnrollInfoOptions | compat.PhoneMultiFactorSignInInfoOptions, applicationVerifier: compat.ApplicationVerifier): Promise<string>; + unwrap(): exp.PhoneAuthProvider; +} diff --git a/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/platform.d.ts b/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/platform.d.ts new file mode 100644 index 0000000..e5b3923 --- /dev/null +++ b/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/platform.d.ts @@ -0,0 +1,39 @@ +/** + * @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. + */ +declare global { + interface Document { + documentMode?: number; + } +} +/** + * @param {?string=} ua The user agent. + * @return {boolean} Whether the app is rendered in a mobile iOS or Android + * Cordova environment. + */ +export declare function _isAndroidOrIosCordovaScheme(ua?: string): boolean; +/** @return {boolean} Whether web storage is supported. */ +export declare function _isWebStorageSupported(): boolean; +/** + * @param {?Object=} global The optional global scope. + * @return {boolean} Whether current environment is a worker. + */ +export declare function _isWorker(): boolean; +export declare function _isPopupRedirectSupported(): boolean; +/** Quick check that indicates the platform *may* be Cordova */ +export declare function _isLikelyCordova(): boolean; +export declare function _isCordova(): Promise<boolean>; +export declare function _getSelfWindow(): Window | null; diff --git a/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/popup_redirect.d.ts b/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/popup_redirect.d.ts new file mode 100644 index 0000000..db392ce --- /dev/null +++ b/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/popup_redirect.d.ts @@ -0,0 +1,34 @@ +/** + * @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 * as exp from '@firebase/auth/internal'; +/** Platform-agnostic popup-redirect resolver */ +export declare class CompatPopupRedirectResolver implements exp.PopupRedirectResolverInternal { + private readonly browserResolver; + private readonly cordovaResolver; + private underlyingResolver; + _redirectPersistence: exp.Persistence; + _completeRedirectFn: (auth: exp.Auth, resolver: exp.PopupRedirectResolver, bypassAuthState: boolean) => Promise<exp.UserCredential | null>; + _overrideRedirectResult: typeof exp._overrideRedirectResult; + _initialize(auth: exp.AuthImpl): Promise<exp.EventManager>; + _openPopup(auth: exp.AuthImpl, provider: exp.AuthProvider, authType: exp.AuthEventType, eventId?: string): Promise<exp.AuthPopup>; + _openRedirect(auth: exp.AuthImpl, provider: exp.AuthProvider, authType: exp.AuthEventType, eventId?: string): Promise<void>; + _isIframeWebStorageSupported(auth: exp.AuthImpl, cb: (support: boolean) => unknown): void; + _originValidation(auth: exp.Auth): Promise<void>; + get _shouldInitProactively(): boolean; + private get assertedUnderlyingResolver(); + private selectUnderlyingResolver; +} diff --git a/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/popup_redirect.test.d.ts b/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/popup_redirect.test.d.ts new file mode 100644 index 0000000..731d2d9 --- /dev/null +++ b/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/popup_redirect.test.d.ts @@ -0,0 +1,17 @@ +/** + * @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 {}; diff --git a/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/recaptcha_verifier.d.ts b/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/recaptcha_verifier.d.ts new file mode 100644 index 0000000..19385c9 --- /dev/null +++ b/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/recaptcha_verifier.d.ts @@ -0,0 +1,28 @@ +/** + * @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 { FirebaseApp } from '@firebase/app-compat'; +import * as exp from '@firebase/auth/internal'; +import * as compat from '@firebase/auth-types'; +import { Compat } from '@firebase/util'; +export declare class RecaptchaVerifier implements compat.RecaptchaVerifier, Compat<exp.ApplicationVerifier> { + readonly _delegate: exp.RecaptchaVerifier; + type: string; + constructor(container: HTMLElement | string, parameters?: object | null, app?: FirebaseApp); + clear(): void; + render(): Promise<number>; + verify(): Promise<string>; +} diff --git a/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/user.d.ts b/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/user.d.ts new file mode 100644 index 0000000..127ed22 --- /dev/null +++ b/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/user.d.ts @@ -0,0 +1,64 @@ +/** + * @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 * as exp from '@firebase/auth/internal'; +import * as compat from '@firebase/auth-types'; +import { Compat } from '@firebase/util'; +export declare class User implements compat.User, Compat<exp.User> { + readonly _delegate: exp.User; + private static readonly USER_MAP; + readonly multiFactor: compat.MultiFactorUser; + private constructor(); + static getOrCreate(user: exp.User): User; + delete(): Promise<void>; + reload(): Promise<void>; + toJSON(): object; + getIdTokenResult(forceRefresh?: boolean): Promise<compat.IdTokenResult>; + getIdToken(forceRefresh?: boolean): Promise<string>; + linkAndRetrieveDataWithCredential(credential: compat.AuthCredential): Promise<compat.UserCredential>; + linkWithCredential(credential: compat.AuthCredential): Promise<compat.UserCredential>; + linkWithPhoneNumber(phoneNumber: string, applicationVerifier: compat.ApplicationVerifier): Promise<compat.ConfirmationResult>; + linkWithPopup(provider: compat.AuthProvider): Promise<compat.UserCredential>; + linkWithRedirect(provider: compat.AuthProvider): Promise<void>; + reauthenticateAndRetrieveDataWithCredential(credential: compat.AuthCredential): Promise<compat.UserCredential>; + reauthenticateWithCredential(credential: compat.AuthCredential): Promise<compat.UserCredential>; + reauthenticateWithPhoneNumber(phoneNumber: string, applicationVerifier: compat.ApplicationVerifier): Promise<compat.ConfirmationResult>; + reauthenticateWithPopup(provider: compat.AuthProvider): Promise<compat.UserCredential>; + reauthenticateWithRedirect(provider: compat.AuthProvider): Promise<void>; + sendEmailVerification(actionCodeSettings?: compat.ActionCodeSettings | null): Promise<void>; + unlink(providerId: string): Promise<compat.User>; + updateEmail(newEmail: string): Promise<void>; + updatePassword(newPassword: string): Promise<void>; + updatePhoneNumber(phoneCredential: compat.AuthCredential): Promise<void>; + updateProfile(profile: { + displayName?: string | null; + photoURL?: string | null; + }): Promise<void>; + verifyBeforeUpdateEmail(newEmail: string, actionCodeSettings?: compat.ActionCodeSettings | null): Promise<void>; + get emailVerified(): boolean; + get isAnonymous(): boolean; + get metadata(): compat.UserMetadata; + get phoneNumber(): string | null; + get providerData(): Array<compat.UserInfo | null>; + get refreshToken(): string; + get tenantId(): string | null; + get displayName(): string | null; + get email(): string | null; + get photoURL(): string | null; + get providerId(): string; + get uid(): string; + private get auth(); +} diff --git a/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/user_credential.d.ts b/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/user_credential.d.ts new file mode 100644 index 0000000..336406e --- /dev/null +++ b/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/user_credential.d.ts @@ -0,0 +1,20 @@ +/** + * @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 * as exp from '@firebase/auth/internal'; +import * as compat from '@firebase/auth-types'; +export declare function convertCredential(auth: exp.Auth, credentialPromise: Promise<exp.UserCredential>): Promise<compat.UserCredential>; +export declare function convertConfirmationResult(auth: exp.Auth, confirmationResultPromise: Promise<exp.ConfirmationResult>): Promise<compat.ConfirmationResult>; diff --git a/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/wrap.d.ts b/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/wrap.d.ts new file mode 100644 index 0000000..7a247c5 --- /dev/null +++ b/frontend-old/node_modules/@firebase/auth-compat/dist/esm/auth-compat/src/wrap.d.ts @@ -0,0 +1,26 @@ +/** + * @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. + */ +/** Forward direction wrapper from Compat --unwrap-> Exp */ +export interface Wrapper<T> { + unwrap(): T; +} +/** Reverse direction wrapper from Exp --wrapped--> Compat */ +export interface ReverseWrapper<T> { + wrapped(): T; +} +export declare function unwrap<T>(object: unknown): T; +export declare function wrapped<T>(object: unknown): T; |
