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/dist/cordova/src/core/credentials | |
pain
Diffstat (limited to 'frontend-old/node_modules/@firebase/auth/dist/cordova/src/core/credentials')
6 files changed, 343 insertions, 0 deletions
diff --git a/frontend-old/node_modules/@firebase/auth/dist/cordova/src/core/credentials/auth_credential.d.ts b/frontend-old/node_modules/@firebase/auth/dist/cordova/src/core/credentials/auth_credential.d.ts new file mode 100644 index 0000000..1287582 --- /dev/null +++ b/frontend-old/node_modules/@firebase/auth/dist/cordova/src/core/credentials/auth_credential.d.ts @@ -0,0 +1,75 @@ +/** + * @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 { AuthInternal } from '../../model/auth'; +import { IdTokenResponse } from '../../model/id_token'; +/** + * Interface that represents the credentials returned by an {@link AuthProvider}. + * + * @remarks + * Implementations specify the details about each auth provider's credential requirements. + * + * @public + */ +export declare class AuthCredential { + /** + * The authentication provider ID for the credential. + * + * @remarks + * For example, 'facebook.com', or 'google.com'. + */ + readonly providerId: string; + /** + * The authentication sign in method for the credential. + * + * @remarks + * For example, {@link SignInMethod}.EMAIL_PASSWORD, or + * {@link SignInMethod}.EMAIL_LINK. This corresponds to the sign-in method + * identifier as returned in {@link fetchSignInMethodsForEmail}. + */ + readonly signInMethod: string; + /** @internal */ + protected constructor( + /** + * The authentication provider ID for the credential. + * + * @remarks + * For example, 'facebook.com', or 'google.com'. + */ + providerId: string, + /** + * The authentication sign in method for the credential. + * + * @remarks + * For example, {@link SignInMethod}.EMAIL_PASSWORD, or + * {@link SignInMethod}.EMAIL_LINK. This corresponds to the sign-in method + * identifier as returned in {@link fetchSignInMethodsForEmail}. + */ + signInMethod: string); + /** + * Returns a JSON-serializable representation of this object. + * + * @returns a JSON-serializable representation of this object. + */ + toJSON(): object; + /** @internal */ + _getIdTokenResponse(_auth: AuthInternal): Promise<PhoneOrOauthTokenResponse>; + /** @internal */ + _linkToIdToken(_auth: AuthInternal, _idToken: string): Promise<IdTokenResponse>; + /** @internal */ + _getReauthenticationResolver(_auth: AuthInternal): Promise<IdTokenResponse>; +} diff --git a/frontend-old/node_modules/@firebase/auth/dist/cordova/src/core/credentials/email.d.ts b/frontend-old/node_modules/@firebase/auth/dist/cordova/src/core/credentials/email.d.ts new file mode 100644 index 0000000..0f44811 --- /dev/null +++ b/frontend-old/node_modules/@firebase/auth/dist/cordova/src/core/credentials/email.d.ts @@ -0,0 +1,60 @@ +/** + * @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 { AuthInternal } from '../../model/auth'; +import { IdTokenResponse } from '../../model/id_token'; +import { AuthCredential } from './auth_credential'; +/** + * Interface that represents the credentials returned by {@link EmailAuthProvider} for + * {@link ProviderId}.PASSWORD + * + * @remarks + * Covers both {@link SignInMethod}.EMAIL_PASSWORD and + * {@link SignInMethod}.EMAIL_LINK. + * + * @public + */ +export declare class EmailAuthCredential extends AuthCredential { + /** @internal */ + readonly _email: string; + /** @internal */ + readonly _password: string; + /** @internal */ + readonly _tenantId: string | null; + /** @internal */ + private constructor(); + /** @internal */ + static _fromEmailAndPassword(email: string, password: string): EmailAuthCredential; + /** @internal */ + static _fromEmailAndCode(email: string, oobCode: string, tenantId?: string | null): EmailAuthCredential; + /** {@inheritdoc AuthCredential.toJSON} */ + toJSON(): object; + /** + * Static method to deserialize a JSON representation of an object into an {@link AuthCredential}. + * + * @param json - Either `object` or the stringified representation of the object. When string is + * provided, `JSON.parse` would be called first. + * + * @returns If the JSON input does not represent an {@link AuthCredential}, null is returned. + */ + static fromJSON(json: object | string): EmailAuthCredential | null; + /** @internal */ + _getIdTokenResponse(auth: AuthInternal): Promise<IdTokenResponse>; + /** @internal */ + _linkToIdToken(auth: AuthInternal, idToken: string): Promise<IdTokenResponse>; + /** @internal */ + _getReauthenticationResolver(auth: AuthInternal): Promise<IdTokenResponse>; +} diff --git a/frontend-old/node_modules/@firebase/auth/dist/cordova/src/core/credentials/index.d.ts b/frontend-old/node_modules/@firebase/auth/dist/cordova/src/core/credentials/index.d.ts new file mode 100644 index 0000000..475dee6 --- /dev/null +++ b/frontend-old/node_modules/@firebase/auth/dist/cordova/src/core/credentials/index.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. + */ +/** + * This file is required due to the circular dependency from the parent class to its children + */ +export { AuthCredential } from './auth_credential'; +export { EmailAuthCredential } from './email'; +export { OAuthCredential } from './oauth'; +export { PhoneAuthCredential as PhoneAuthCredential } from './phone'; diff --git a/frontend-old/node_modules/@firebase/auth/dist/cordova/src/core/credentials/oauth.d.ts b/frontend-old/node_modules/@firebase/auth/dist/cordova/src/core/credentials/oauth.d.ts new file mode 100644 index 0000000..96a1928 --- /dev/null +++ b/frontend-old/node_modules/@firebase/auth/dist/cordova/src/core/credentials/oauth.d.ts @@ -0,0 +1,81 @@ +/** + * @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 { AuthInternal } from '../../model/auth'; +import { IdTokenResponse } from '../../model/id_token'; +import { AuthCredential } from './auth_credential'; +export interface OAuthCredentialParams { + idToken?: string | null; + accessToken?: string | null; + oauthToken?: string; + secret?: string; + oauthTokenSecret?: string; + nonce?: string; + pendingToken?: string; + providerId: string; + signInMethod: string; +} +/** + * Represents the OAuth credentials returned by an {@link OAuthProvider}. + * + * @remarks + * Implementations specify the details about each auth provider's credential requirements. + * + * @public + */ +export declare class OAuthCredential extends AuthCredential { + /** + * The OAuth ID token associated with the credential if it belongs to an OIDC provider, + * such as `google.com`. + * @readonly + */ + idToken?: string; + /** + * The OAuth access token associated with the credential if it belongs to an + * {@link OAuthProvider}, such as `facebook.com`, `twitter.com`, etc. + * @readonly + */ + accessToken?: string; + /** + * The OAuth access token secret associated with the credential if it belongs to an OAuth 1.0 + * provider, such as `twitter.com`. + * @readonly + */ + secret?: string; + private nonce?; + private pendingToken; + /** @internal */ + static _fromParams(params: OAuthCredentialParams): OAuthCredential; + /** {@inheritdoc AuthCredential.toJSON} */ + toJSON(): object; + /** + * Static method to deserialize a JSON representation of an object into an + * {@link AuthCredential}. + * + * @param json - Input can be either Object or the stringified representation of the object. + * When string is provided, JSON.parse would be called first. + * + * @returns If the JSON input does not represent an {@link AuthCredential}, null is returned. + */ + static fromJSON(json: string | object): OAuthCredential | null; + /** @internal */ + _getIdTokenResponse(auth: AuthInternal): Promise<IdTokenResponse>; + /** @internal */ + _linkToIdToken(auth: AuthInternal, idToken: string): Promise<IdTokenResponse>; + /** @internal */ + _getReauthenticationResolver(auth: AuthInternal): Promise<IdTokenResponse>; + private buildRequest; +} diff --git a/frontend-old/node_modules/@firebase/auth/dist/cordova/src/core/credentials/phone.d.ts b/frontend-old/node_modules/@firebase/auth/dist/cordova/src/core/credentials/phone.d.ts new file mode 100644 index 0000000..1924744 --- /dev/null +++ b/frontend-old/node_modules/@firebase/auth/dist/cordova/src/core/credentials/phone.d.ts @@ -0,0 +1,52 @@ +/** + * @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 { SignInWithPhoneNumberRequest } from '../../api/authentication/sms'; +import { AuthInternal } from '../../model/auth'; +import { IdTokenResponse } from '../../model/id_token'; +import { AuthCredential } from './auth_credential'; +export interface PhoneAuthCredentialParameters { + verificationId?: string; + verificationCode?: string; + phoneNumber?: string; + temporaryProof?: string; +} +/** + * Represents the credentials returned by {@link PhoneAuthProvider}. + * + * @public + */ +export declare class PhoneAuthCredential extends AuthCredential { + private readonly params; + private constructor(); + /** @internal */ + static _fromVerification(verificationId: string, verificationCode: string): PhoneAuthCredential; + /** @internal */ + static _fromTokenResponse(phoneNumber: string, temporaryProof: string): PhoneAuthCredential; + /** @internal */ + _getIdTokenResponse(auth: AuthInternal): Promise<PhoneOrOauthTokenResponse>; + /** @internal */ + _linkToIdToken(auth: AuthInternal, idToken: string): Promise<IdTokenResponse>; + /** @internal */ + _getReauthenticationResolver(auth: AuthInternal): Promise<IdTokenResponse>; + /** @internal */ + _makeVerificationRequest(): SignInWithPhoneNumberRequest; + /** {@inheritdoc AuthCredential.toJSON} */ + toJSON(): object; + /** Generates a phone credential based on a plain object or a JSON string. */ + static fromJSON(json: object | string): PhoneAuthCredential | null; +} diff --git a/frontend-old/node_modules/@firebase/auth/dist/cordova/src/core/credentials/saml.d.ts b/frontend-old/node_modules/@firebase/auth/dist/cordova/src/core/credentials/saml.d.ts new file mode 100644 index 0000000..54fea84 --- /dev/null +++ b/frontend-old/node_modules/@firebase/auth/dist/cordova/src/core/credentials/saml.d.ts @@ -0,0 +1,52 @@ +/** + * @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 { AuthInternal } from '../../model/auth'; +import { IdTokenResponse } from '../../model/id_token'; +import { AuthCredential } from './auth_credential'; +/** + * @public + */ +export declare class SAMLAuthCredential extends AuthCredential { + private readonly pendingToken; + /** @internal */ + private constructor(); + /** @internal */ + _getIdTokenResponse(auth: AuthInternal): Promise<IdTokenResponse>; + /** @internal */ + _linkToIdToken(auth: AuthInternal, idToken: string): Promise<IdTokenResponse>; + /** @internal */ + _getReauthenticationResolver(auth: AuthInternal): Promise<IdTokenResponse>; + /** {@inheritdoc AuthCredential.toJSON} */ + toJSON(): object; + /** + * Static method to deserialize a JSON representation of an object into an + * {@link AuthCredential}. + * + * @param json - Input can be either Object or the stringified representation of the object. + * When string is provided, JSON.parse would be called first. + * + * @returns If the JSON input does not represent an {@link AuthCredential}, null is returned. + */ + static fromJSON(json: string | object): SAMLAuthCredential | null; + /** + * Helper static method to avoid exposing the constructor to end users. + * + * @internal + */ + static _create(providerId: string, pendingToken: string): SAMLAuthCredential; + private buildRequest; +} |
