1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 | import { PhoneOrOauthTokenResponse } from '../api/authentication/mfa';
|
18 |
|
19 |
|
20 |
|
21 |
|
22 | export declare type IdToken = string;
|
23 |
|
24 |
|
25 |
|
26 |
|
27 | export interface ParsedIdToken {
|
28 | iss: string;
|
29 | aud: string;
|
30 | exp: number;
|
31 | sub: string;
|
32 | iat: number;
|
33 | email?: string;
|
34 | verified: boolean;
|
35 | providerId?: string;
|
36 | tenantId?: string;
|
37 | anonymous: boolean;
|
38 | federatedId?: string;
|
39 | displayName?: string;
|
40 | photoURL?: string;
|
41 | toString(): string;
|
42 | }
|
43 |
|
44 |
|
45 |
|
46 |
|
47 |
|
48 | export interface IdTokenResponse {
|
49 | localId: string;
|
50 | idToken?: IdToken;
|
51 | refreshToken?: string;
|
52 | expiresIn?: string;
|
53 | providerId?: string;
|
54 | displayName?: string | null;
|
55 | isNewUser?: boolean;
|
56 | kind?: IdTokenResponseKind;
|
57 | photoUrl?: string | null;
|
58 | rawUserInfo?: string;
|
59 | screenName?: string | null;
|
60 | }
|
61 |
|
62 |
|
63 |
|
64 |
|
65 |
|
66 | export declare const enum IdTokenResponseKind {
|
67 | CreateAuthUri = "identitytoolkit#CreateAuthUriResponse",
|
68 | DeleteAccount = "identitytoolkit#DeleteAccountResponse",
|
69 | DownloadAccount = "identitytoolkit#DownloadAccountResponse",
|
70 | EmailLinkSignin = "identitytoolkit#EmailLinkSigninResponse",
|
71 | GetAccountInfo = "identitytoolkit#GetAccountInfoResponse",
|
72 | GetOobConfirmationCode = "identitytoolkit#GetOobConfirmationCodeResponse",
|
73 | GetRecaptchaParam = "identitytoolkit#GetRecaptchaParamResponse",
|
74 | ResetPassword = "identitytoolkit#ResetPasswordResponse",
|
75 | SetAccountInfo = "identitytoolkit#SetAccountInfoResponse",
|
76 | SignupNewUser = "identitytoolkit#SignupNewUserResponse",
|
77 | UploadAccount = "identitytoolkit#UploadAccountResponse",
|
78 | VerifyAssertion = "identitytoolkit#VerifyAssertionResponse",
|
79 | VerifyCustomToken = "identitytoolkit#VerifyCustomTokenResponse",
|
80 | VerifyPassword = "identitytoolkit#VerifyPasswordResponse"
|
81 | }
|
82 |
|
83 |
|
84 |
|
85 | export interface TaggedWithTokenResponse {
|
86 | _tokenResponse?: PhoneOrOauthTokenResponse;
|
87 | }
|