1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 | import { PhoneOrOauthTokenResponse } from '../../api/authentication/mfa';
|
18 | import { SignInWithPhoneNumberRequest } from '../../api/authentication/sms';
|
19 | import { AuthInternal } from '../../model/auth';
|
20 | import { IdTokenResponse } from '../../model/id_token';
|
21 | import { AuthCredential } from './auth_credential';
|
22 | export interface PhoneAuthCredentialParameters {
|
23 | verificationId?: string;
|
24 | verificationCode?: string;
|
25 | phoneNumber?: string;
|
26 | temporaryProof?: string;
|
27 | }
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 | export declare class PhoneAuthCredential extends AuthCredential {
|
34 | private readonly params;
|
35 | private constructor();
|
36 | /** @internal */
|
37 | static _fromVerification(verificationId: string, verificationCode: string): PhoneAuthCredential;
|
38 | /** @internal */
|
39 | static _fromTokenResponse(phoneNumber: string, temporaryProof: string): PhoneAuthCredential;
|
40 | /** @internal */
|
41 | _getIdTokenResponse(auth: AuthInternal): Promise<PhoneOrOauthTokenResponse>;
|
42 | /** @internal */
|
43 | _linkToIdToken(auth: AuthInternal, idToken: string): Promise<IdTokenResponse>;
|
44 | /** @internal */
|
45 | _getReauthenticationResolver(auth: AuthInternal): Promise<IdTokenResponse>;
|
46 | /** @internal */
|
47 | _makeVerificationRequest(): SignInWithPhoneNumberRequest;
|
48 | /** {@inheritdoc AuthCredential.toJSON} */
|
49 | toJSON(): object;
|
50 |
|
51 | static fromJSON(json: object | string): PhoneAuthCredential | null;
|
52 | }
|