diff options
| author | altaf-creator <dev@altafcreator.com> | 2025-11-16 19:08:29 +0800 |
|---|---|---|
| committer | altaf-creator <dev@altafcreator.com> | 2025-11-16 19:08:29 +0800 |
| commit | 434aa8343fdcbb4d5002f934979913c099489bee (patch) | |
| tree | 55bab4ec5a6151be57797d34f61faf5ea744471b /frontend-old/node_modules/@firebase/auth/dist/node/src/core/user | |
| parent | 893c388d4e99442a36005e5971a87730623f946e (diff) | |
sdk, del
Diffstat (limited to 'frontend-old/node_modules/@firebase/auth/dist/node/src/core/user')
12 files changed, 0 insertions, 466 deletions
diff --git a/frontend-old/node_modules/@firebase/auth/dist/node/src/core/user/account_info.d.ts b/frontend-old/node_modules/@firebase/auth/dist/node/src/core/user/account_info.d.ts deleted file mode 100644 index 312e23c..0000000 --- a/frontend-old/node_modules/@firebase/auth/dist/node/src/core/user/account_info.d.ts +++ /dev/null @@ -1,68 +0,0 @@ -/** - * @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 { User } from '../../model/public_types'; -/** - * Updates a user's profile data. - * - * @param user - The user. - * @param profile - The profile's `displayName` and `photoURL` to update. - * - * @public - */ -export declare function updateProfile(user: User, { displayName, photoURL: photoUrl }: { - displayName?: string | null; - photoURL?: string | null; -}): Promise<void>; -/** - * Updates the user's email address. - * - * @remarks - * An email will be sent to the original email address (if it was set) that allows to revoke the - * email address change, in order to protect them from account hijacking. - * - * This method is not supported on any {@link User} signed in by {@link Auth} instances - * created with a {@link @firebase/app#FirebaseServerApp}. - * - * Important: this is a security sensitive operation that requires the user to have recently signed - * in. If this requirement isn't met, ask the user to authenticate again and then call - * {@link reauthenticateWithCredential}. - * - * @param user - The user. - * @param newEmail - The new email address. - * - * Throws "auth/operation-not-allowed" error when - * {@link https://cloud.google.com/identity-platform/docs/admin/email-enumeration-protection | Email Enumeration Protection} - * is enabled. - * Deprecated - Use {@link verifyBeforeUpdateEmail} instead. - * - * @public - */ -export declare function updateEmail(user: User, newEmail: string): Promise<void>; -/** - * Updates the user's password. - * - * @remarks - * Important: this is a security sensitive operation that requires the user to have recently signed - * in. If this requirement isn't met, ask the user to authenticate again and then call - * {@link reauthenticateWithCredential}. - * - * @param user - The user. - * @param newPassword - The new password. - * - * @public - */ -export declare function updatePassword(user: User, newPassword: string): Promise<void>; diff --git a/frontend-old/node_modules/@firebase/auth/dist/node/src/core/user/additional_user_info.d.ts b/frontend-old/node_modules/@firebase/auth/dist/node/src/core/user/additional_user_info.d.ts deleted file mode 100644 index d5fd65b..0000000 --- a/frontend-old/node_modules/@firebase/auth/dist/node/src/core/user/additional_user_info.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -/** - * @license - * Copyright 2019 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 { AdditionalUserInfo, UserCredential } from '../../model/public_types'; -import { IdTokenResponse } from '../../model/id_token'; -/** - * Parse the `AdditionalUserInfo` from the ID token response. - * - */ -export declare function _fromIdTokenResponse(idTokenResponse?: IdTokenResponse): AdditionalUserInfo | null; -/** - * Extracts provider specific {@link AdditionalUserInfo} for the given credential. - * - * @param userCredential - The user credential. - * - * @public - */ -export declare function getAdditionalUserInfo(userCredential: UserCredential): AdditionalUserInfo | null; diff --git a/frontend-old/node_modules/@firebase/auth/dist/node/src/core/user/id_token_result.d.ts b/frontend-old/node_modules/@firebase/auth/dist/node/src/core/user/id_token_result.d.ts deleted file mode 100644 index c1b2032..0000000 --- a/frontend-old/node_modules/@firebase/auth/dist/node/src/core/user/id_token_result.d.ts +++ /dev/null @@ -1,48 +0,0 @@ -/** - * @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 { IdTokenResult, ParsedToken, User } from '../../model/public_types'; -/** - * Returns a JSON Web Token (JWT) used to identify the user to a Firebase service. - * - * @remarks - * Returns the current token if it has not expired or if it will not expire in the next five - * minutes. Otherwise, this will refresh the token and return a new one. - * - * @param user - The user. - * @param forceRefresh - Force refresh regardless of token expiration. - * - * @public - */ -export declare function getIdToken(user: User, forceRefresh?: boolean): Promise<string>; -/** - * Returns a deserialized JSON Web Token (JWT) used to identify the user to a Firebase service. - * - * @remarks - * Returns the current token if it has not expired or if it will not expire in the next five - * minutes. Otherwise, this will refresh the token and return a new one. - * - * @param user - The user. - * @param forceRefresh - Force refresh regardless of token expiration. - * - * @public - */ -export declare function getIdTokenResult(user: User, forceRefresh?: boolean): Promise<IdTokenResult>; -export declare function _parseToken(token: string): ParsedToken | null; -/** - * Extract expiresIn TTL from a token by subtracting the expiration from the issuance. - */ -export declare function _tokenExpiresIn(token: string): number; diff --git a/frontend-old/node_modules/@firebase/auth/dist/node/src/core/user/invalidation.d.ts b/frontend-old/node_modules/@firebase/auth/dist/node/src/core/user/invalidation.d.ts deleted file mode 100644 index 81446ea..0000000 --- a/frontend-old/node_modules/@firebase/auth/dist/node/src/core/user/invalidation.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * @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 { UserInternal } from '../../model/user'; -export declare function _logoutIfInvalidated<T>(user: UserInternal, promise: Promise<T>, bypassAuthState?: boolean): Promise<T>; diff --git a/frontend-old/node_modules/@firebase/auth/dist/node/src/core/user/link_unlink.d.ts b/frontend-old/node_modules/@firebase/auth/dist/node/src/core/user/link_unlink.d.ts deleted file mode 100644 index 9408524..0000000 --- a/frontend-old/node_modules/@firebase/auth/dist/node/src/core/user/link_unlink.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * @license - * Copyright 2019 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 { User } from '../../model/public_types'; -import { UserInternal, UserCredentialInternal } from '../../model/user'; -import { AuthCredential } from '../credentials'; -/** - * Unlinks a provider from a user account. - * - * @param user - The user. - * @param providerId - The provider to unlink. - * - * @public - */ -export declare function unlink(user: User, providerId: string): Promise<User>; -export declare function _link(user: UserInternal, credential: AuthCredential, bypassAuthState?: boolean): Promise<UserCredentialInternal>; -export declare function _assertLinkedStatus(expected: boolean, user: UserInternal, provider: string): Promise<void>; diff --git a/frontend-old/node_modules/@firebase/auth/dist/node/src/core/user/proactive_refresh.d.ts b/frontend-old/node_modules/@firebase/auth/dist/node/src/core/user/proactive_refresh.d.ts deleted file mode 100644 index ff52286..0000000 --- a/frontend-old/node_modules/@firebase/auth/dist/node/src/core/user/proactive_refresh.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * @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 { UserInternal } from '../../model/user'; -export declare const enum Duration { - OFFSET = 300000, - RETRY_BACKOFF_MIN = 30000, - RETRY_BACKOFF_MAX = 960000 -} -export declare class ProactiveRefresh { - private readonly user; - private isRunning; - private timerId; - private errorBackoff; - constructor(user: UserInternal); - _start(): void; - _stop(): void; - private getInterval; - private schedule; - private iteration; -} diff --git a/frontend-old/node_modules/@firebase/auth/dist/node/src/core/user/reauthenticate.d.ts b/frontend-old/node_modules/@firebase/auth/dist/node/src/core/user/reauthenticate.d.ts deleted file mode 100644 index 1855132..0000000 --- a/frontend-old/node_modules/@firebase/auth/dist/node/src/core/user/reauthenticate.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * @license - * Copyright 2019 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 { UserInternal } from '../../model/user'; -import { AuthCredential } from '../credentials'; -import { UserCredentialImpl } from './user_credential_impl'; -export declare function _reauthenticate(user: UserInternal, credential: AuthCredential, bypassAuthState?: boolean): Promise<UserCredentialImpl>; diff --git a/frontend-old/node_modules/@firebase/auth/dist/node/src/core/user/reload.d.ts b/frontend-old/node_modules/@firebase/auth/dist/node/src/core/user/reload.d.ts deleted file mode 100644 index f2690fa..0000000 --- a/frontend-old/node_modules/@firebase/auth/dist/node/src/core/user/reload.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * @license - * Copyright 2019 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 { User, UserInfo } from '../../model/public_types'; -import { ProviderUserInfo } from '../../api/account_management/account'; -import { UserInternal } from '../../model/user'; -export declare function _reloadWithoutSaving(user: UserInternal): Promise<void>; -/** - * Reloads user account data, if signed in. - * - * @param user - The user. - * - * @public - */ -export declare function reload(user: User): Promise<void>; -export declare function extractProviderData(providers: ProviderUserInfo[]): UserInfo[]; diff --git a/frontend-old/node_modules/@firebase/auth/dist/node/src/core/user/token_manager.d.ts b/frontend-old/node_modules/@firebase/auth/dist/node/src/core/user/token_manager.d.ts deleted file mode 100644 index 790e283..0000000 --- a/frontend-old/node_modules/@firebase/auth/dist/node/src/core/user/token_manager.d.ts +++ /dev/null @@ -1,50 +0,0 @@ -/** - * @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 { FinalizeMfaResponse } from '../../api/authentication/mfa'; -import { AuthInternal } from '../../model/auth'; -import { IdTokenResponse } from '../../model/id_token'; -import { PersistedBlob } from '../persistence'; -/** - * The number of milliseconds before the official expiration time of a token - * to refresh that token, to provide a buffer for RPCs to complete. - */ -export declare const enum Buffer { - TOKEN_REFRESH = 30000 -} -/** - * We need to mark this class as internal explicitly to exclude it in the public typings, because - * it references AuthInternal which has a circular dependency with UserInternal. - * - * @internal - */ -export declare class StsTokenManager { - refreshToken: string | null; - accessToken: string | null; - expirationTime: number | null; - get isExpired(): boolean; - updateFromServerResponse(response: IdTokenResponse | FinalizeMfaResponse): void; - updateFromIdToken(idToken: string): void; - getToken(auth: AuthInternal, forceRefresh?: boolean): Promise<string | null>; - clearRefreshToken(): void; - private refresh; - private updateTokensAndExpiration; - static fromJSON(appName: string, object: PersistedBlob): StsTokenManager; - toJSON(): object; - _assign(stsTokenManager: StsTokenManager): void; - _clone(): StsTokenManager; - _performRefresh(): never; -} diff --git a/frontend-old/node_modules/@firebase/auth/dist/node/src/core/user/user_credential_impl.d.ts b/frontend-old/node_modules/@firebase/auth/dist/node/src/core/user/user_credential_impl.d.ts deleted file mode 100644 index 44ece34..0000000 --- a/frontend-old/node_modules/@firebase/auth/dist/node/src/core/user/user_credential_impl.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * @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 { PhoneOrOauthTokenResponse } from '../../api/authentication/mfa'; -import { IdTokenResponse } from '../../model/id_token'; -import { UserInternal, UserCredentialInternal } from '../../model/user'; -import { AuthInternal } from '../../model/auth'; -import { OperationType, ProviderId } from '../../model/enums'; -interface UserCredentialParams { - readonly user: UserInternal; - readonly providerId: ProviderId | string | null; - readonly _tokenResponse?: PhoneOrOauthTokenResponse; - readonly operationType: OperationType; -} -export declare class UserCredentialImpl implements UserCredentialInternal, UserCredentialParams { - readonly user: UserInternal; - readonly providerId: ProviderId | string | null; - readonly _tokenResponse: PhoneOrOauthTokenResponse | undefined; - readonly operationType: OperationType; - constructor(params: UserCredentialParams); - static _fromIdTokenResponse(auth: AuthInternal, operationType: OperationType, idTokenResponse: IdTokenResponse, isAnonymous?: boolean): Promise<UserCredentialInternal>; - static _forOperation(user: UserInternal, operationType: OperationType, response: PhoneOrOauthTokenResponse): Promise<UserCredentialImpl>; -} -export {}; diff --git a/frontend-old/node_modules/@firebase/auth/dist/node/src/core/user/user_impl.d.ts b/frontend-old/node_modules/@firebase/auth/dist/node/src/core/user/user_impl.d.ts deleted file mode 100644 index f795111..0000000 --- a/frontend-old/node_modules/@firebase/auth/dist/node/src/core/user/user_impl.d.ts +++ /dev/null @@ -1,74 +0,0 @@ -/** - * @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 { IdTokenResult } from '../../model/public_types'; -import { NextFn } from '@firebase/util'; -import { APIUserInfo, GetAccountInfoResponse } from '../../api/account_management/account'; -import { FinalizeMfaResponse } from '../../api/authentication/mfa'; -import { AuthInternal } from '../../model/auth'; -import { IdTokenResponse } from '../../model/id_token'; -import { MutableUserInfo, UserInternal, UserParameters } from '../../model/user'; -import { PersistedBlob } from '../persistence'; -import { StsTokenManager } from './token_manager'; -import { UserMetadata } from './user_metadata'; -import { ProviderId } from '../../model/enums'; -export declare class UserImpl implements UserInternal { - readonly providerId = ProviderId.FIREBASE; - stsTokenManager: StsTokenManager; - private accessToken; - uid: string; - auth: AuthInternal; - emailVerified: boolean; - isAnonymous: boolean; - tenantId: string | null; - readonly metadata: UserMetadata; - providerData: MutableUserInfo[]; - displayName: string | null; - email: string | null; - phoneNumber: string | null; - photoURL: string | null; - _redirectEventId?: string; - private readonly proactiveRefresh; - constructor({ uid, auth, stsTokenManager, ...opt }: UserParameters); - getIdToken(forceRefresh?: boolean): Promise<string>; - getIdTokenResult(forceRefresh?: boolean): Promise<IdTokenResult>; - reload(): Promise<void>; - private reloadUserInfo; - private reloadListener; - _assign(user: UserInternal): void; - _clone(auth: AuthInternal): UserInternal; - _onReload(callback: NextFn<APIUserInfo>): void; - _notifyReloadListener(userInfo: APIUserInfo): void; - _startProactiveRefresh(): void; - _stopProactiveRefresh(): void; - _updateTokensIfNecessary(response: IdTokenResponse | FinalizeMfaResponse, reload?: boolean): Promise<void>; - delete(): Promise<void>; - toJSON(): PersistedBlob; - get refreshToken(): string; - static _fromJSON(auth: AuthInternal, object: PersistedBlob): UserInternal; - /** - * Initialize a User from an idToken server response - * @param auth - * @param idTokenResponse - */ - static _fromIdTokenResponse(auth: AuthInternal, idTokenResponse: IdTokenResponse, isAnonymous?: boolean): Promise<UserInternal>; - /** - * Initialize a User from an idToken server response - * @param auth - * @param idTokenResponse - */ - static _fromGetAccountInfoResponse(auth: AuthInternal, response: GetAccountInfoResponse, idToken: string): Promise<UserInternal>; -} diff --git a/frontend-old/node_modules/@firebase/auth/dist/node/src/core/user/user_metadata.d.ts b/frontend-old/node_modules/@firebase/auth/dist/node/src/core/user/user_metadata.d.ts deleted file mode 100644 index c732ce3..0000000 --- a/frontend-old/node_modules/@firebase/auth/dist/node/src/core/user/user_metadata.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * @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 { UserMetadata as UserMetadataType } from '../../model/public_types'; -export declare class UserMetadata implements UserMetadataType { - private createdAt?; - private lastLoginAt?; - creationTime?: string; - lastSignInTime?: string; - constructor(createdAt?: (string | number) | undefined, lastLoginAt?: (string | number) | undefined); - private _initializeTime; - _copy(metadata: UserMetadata): void; - toJSON(): object; -} |
